Agent / API

foldkit-agent-mcp

foldkit-agent-mcp -- serves a Foldkit agent contract over MCP.

The protocol mapping is a transport-free message handler, so it can be tested by handing it JSON-RPC messages. stdio attaches it to a process.

Namespaces

AgentMcp
jsonRpcCodeThe codes MCP relies on.

Values

UNPARSEABLE_BODYThe body of a POST whose JSON text could not be parsed.

Interfaces

AuthenticateDefectauthenticate died or threw; the request was answered 500 and the client told nothing of it.
CapabilityDefectA capability's dispatch died; the call was answered a tool error naming no cause.
HttpHandler
HttpHandlerOptions
HttpRequestA transport-neutral request, so this can sit behind any HTTP server.
HttpResponse
Notification
Request
RequestDefectHandling a request threw (a projection, a resource read); it was answered an internal error.
SseEventOne server-sent event. id is the cursor a client resumes from.
SseStreamAn open SSE stream.
ToolListDefectListing the available tools threw while the Model changed, so no tools/list_changed was sent.
TransportEndDefectA client transport's end threw while its session was dropped; the session ended regardless.
UnauthenticatedWhy authenticate refused a caller: answered as a 401 with reason. Remote's RemoteUnauthenticated (RemoteServer.unauthenticated(reason)) is one, so the…

Types

AgentMcpDiagnosticEvery diagnostic foldkit-agent-mcp reports.
HttpAppOptionsEither the options to create a handler, or an existing handler to reuse so sessions can be shared. Not both: a reused handler would ignore the rest.
IdThe slice of JSON-RPC 2.0 that MCP uses.
Response