Expand description
Spec-defined method and notification names.
These live in core because they are protocol facts, not server facts. They
were previously declared only in mcpkit-server, which left every other
crate — core, client, testing, the examples — writing the names as string
literals. That is how three separate places shipped a non-spec
"initialized", and how the debug validator registered it as a known method.
Use these at any site that sends or matches a method name. Do not use them in tests that assert what the wire name is: an assertion against the constant passes even when the constant is wrong, which is precisely how those defects stayed green. Tests should spell the literal out.
Completeness is enforced against the vendored schema — see
mcpkit/tests/protocol_behaviour_conformance.rs.
Modules§
- notifications
- Spec-defined notification method names.
Constants§
- COMPLETION_
COMPLETE - Request completion suggestions.
- ELICITATION_
CREATE - Create an elicitation request.
- INITIALIZE
- Initialize the connection and negotiate capabilities.
- LOGGING_
SET_ LEVEL - Set the logging level.
- PING
- Ping to check if the connection is alive.
- PROMPTS_
GET - Get a specific prompt with arguments.
- PROMPTS_
LIST - List available prompts.
- RESOURCES_
LIST - List available resources.
- RESOURCES_
READ - Read the contents of a resource.
- RESOURCES_
SUBSCRIBE - Subscribe to resource updates.
- RESOURCES_
TEMPLATES_ LIST - List available resource templates.
- RESOURCES_
UNSUBSCRIBE - Unsubscribe from resource updates.
- ROOTS_
LIST - List the roots the client exposes.
- SAMPLING_
CREATE_ MESSAGE - Request the client to sample from a language model.
- TASKS_
CANCEL - Cancel a running task.
- TASKS_
GET - Get status of a specific task.
- TASKS_
LIST - List running tasks.
- TASKS_
RESULT - Retrieve a terminal task’s payload (blocks until terminal, per spec).
- TOOLS_
CALL - Call a specific tool with arguments.
- TOOLS_
LIST - List available tools.