An incident-desk MCP server with a fixed resource, two resource templates, a prompt, a tool that borrows the client's model (sampling) and a tool that asks the operator to approve a restart (elicitation). Driven by a plain SDK client in JUnit and by raw curl, so the JSON-RPC for both server-to-client requests is committed. Also captured: a client that declared neither capability (a gated tool degrades, an ungated one returns an isError result), a slow client hitting the server request timeout, and protocol=STATELESS silently dropping every tool that takes McpSyncRequestContext (one WARN line, an empty tools/list). Negotiated protocol version is 2025-11-25; the 2026-07-28 spec is not implemented by SDK 2.1.0. No docs/ folder. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5jAFLJrmUXmbo5EuV
14 lines
565 B
Plaintext
14 lines
565 B
Plaintext
# resources/list, resources/templates/list, resources/read
|
|
resource incident://index name=incident-index mime=text/plain
|
|
template incident://{id}/log name=incident-log
|
|
template runbook://{service} name=runbook
|
|
|
|
read incident://index ->
|
|
INC-1042
|
|
INC-1043
|
|
read incident://INC-1043/log ->
|
|
11:02:44 search-api WARN index segment merge running
|
|
11:02:51 search-api INFO p99 latency 840ms (SLO 500ms)
|
|
|
|
read incident://INC-9999/log -> McpError: Error invoking resource method: log in com.ankurm.mcpadvanced.IncidentResources. /nCause: No such incident: INC-9999
|