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

HttpHandler
HttpHandlerOptions
HttpRequestA transport-neutral request, so this can sit behind any HTTP server.
HttpResponse
Notification
Request
SseEventOne server-sent event. id is the cursor a client resumes from.
SseStreamAn open SSE stream.
UnauthenticatedWhy authenticate refused a caller: answered as a 401 with reason. Remote's RemoteUnauthenticated (RemoteServer.unauthenticated(reason)) is one, so the…

Types

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