server/discover to learn its capabilities, or go directly
to a tool request. Include the protocol revision and client capabilities in
each request’s params._meta.
Each request carries its own credential, and each runs as the principal its
verifier admits. A signed-in Bijection application session can serve as
that credential. The protocol exchange has no session
identifier or separate setup or teardown. GET and DELETE on the endpoint
return 405.
Receive notifications
For a server that advertises notification capabilities, POSTsubscriptions/listen with params.notifications. The acknowledgment
lists which fields, resource URIs and task IDs the server will honor. Each
event carries the request’s ID in
params._meta["io.modelcontextprotocol/subscriptionId"]. Subscriptions
are available on servers at the public label. They report published changes to tool,
prompt and resource catalogs, new revisions of static resources, and changes
to query-backed resources and templates. The server follows a query-backed
resource by re-running its read under your identity whenever the data that
read depends on changes, and sends notifications/resources/updated when the
content differs. A client that declares the io.modelcontextprotocol/tasks
extension can list taskIds to receive notifications/tasks with each new
task state. Open a new subscription when the stream ends, or close it when
you no longer need notifications.
Follow progress
Progress comes from the task a tool starts. A tool that runs as one transaction sends no progress. For a tool that starts a task, a client that declares the Tasks extension gets a task handle and pollstasks/get. Other
clients that accept text/event-stream and set params._meta.progressToken
keep the response open: the server sends notifications/progress as the
task’s state advances, then the tool’s own result once the task settles or
the response must close. Run a tool as a task
The optional server trace handler can emit diagnostic messages for requests
that set params._meta["io.modelcontextprotocol/logLevel"]. Trace messages
are released after the transaction settles and appear before the final
JSON-RPC response on the request’s event stream.