Skip to main content
The routes and settings createTappifyHandler builds a fetch handler from.

Remarks

The tools, actions and procedures tables are keyed by the names the augmentation tappify extension types writes, so a handler for an undeclared name does not compile. events is keyed by Tappify’s own event catalogue and work by the fixed set of work operations; mentions and context take any id. A route Tappify calls with no handler registered answers 404 with TAP_HANDLER_MISSING. Export this object as well as the handler: the testing entry’s createTestClient takes the options, not the built handler.

Properties

actions?

One handler per declared action, answering POST /tappify/actions/<id>.

Index Signature


basePath?

The prefix your framework mounts the handler under, such as /api.

context?

One handler per declared context block, answering GET /tappify/context/<id>.

events?

One handler per Tappify event you subscribe to; each answers 204.
approval.requested?
digest.sent?
featuring.started?
incident.opened?
incident.resolved?
install.created?
install.paused?
install.resumed?
install.revoked?
install.token_rotated?
keyword.set_changed?
metadata.changed?
playbook.step_approved?
price.changed?
release.shipped?
review.thread_opened?
review.thread_resolved?
scopes.changed?
score.changed?
screenshots.updated?
settings.changed?

extensionId

The id from the manifest, which the install token’s audience has to match.

health?

Answers GET /tappify/health. Left out, the route answers { ok: true }.

Returns

| TappifyHealth | Promise<TappifyHealth>

jwks?

A key set to verify against, which skips the fetch. For tests.

jwksUrl?

Where to fetch the signing keys. Defaults to DEFAULT_JWKS_URL.

mentions?

One handler per declared mention, answering GET /tappify/mentions/<id>?q=.

metrics?

Answers POST /tappify/metrics for a connector contribution.

procedures?

One handler per declared procedure, which is what useTapServer calls.

Index Signature


tools?

One handler per declared tool, answering POST /tappify/tools/<id>.

Index Signature


work?

One handler per work operation, answering POST /tappify/work/<operation>.

attach?

comment?

create?

list_containers?

resolve?

status?