Skip to content

Protocols

The toolchain exposes practical compatibility surfaces for local agents and clients. The current language is intentionally conservative: MCP-style and A2A-style endpoints are compatibility surfaces, not certified conformance claims.

HTTP Knowledge Source

llmwiki-serve exposes these local HTTP endpoints:

EndpointMethodPurposeAvailability
/healthGETProcess health checkdefault
/manifestGETSource discovery and metadatadefault
/source-bundleGETSource-owned bundle identity, capabilities, projection metadata, raw-origin metadata, and typed source refsdefault
/source-refsGETTyped opaque source-reference handles linked from approved pagesdefault
/queryPOSTContext retrieval for a querydefault
/searchPOSTSearch candidate pages or snippetsdefault
/read/{page_id}GETRead one projected pagedefault
/graphGETRead projected graph nodes and edgesdefault
/mcpPOSTMCP-style JSON-RPC tool endpointdefault
/mcp/streamPOSTMCP Streamable HTTP tool endpointdefault when supported by the installed server version
/.well-known/agent-card.jsonGETA2A-style source discovery cardopt-in
/message:sendPOSTA2A-style source context endpointopt-in

For request and response examples, see API Reference. For the disk format that feeds these endpoints, see Knowledge Source Format.

MCP-Style JSON-RPC

The MCP-style endpoint accepts JSON-RPC requests at /mcp. Typical tool calls include:

  • llmwiki_context for primary context retrieval
  • llmwiki_search for targeted search
  • llmwiki_read for page inspection
  • llmwiki_graph for graph inspection
  • llmwiki_source_refs for typed source-reference handles
  • llmwiki_source_bundle for source bundle discovery

Example:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "llmwiki_context",
    "arguments": {
      "query": "release readiness",
      "limit": 4
    }
  }
}

A2A-Style Message Surface

The A2A-style path exposes discovery through /.well-known/agent-card.json and message handling through POST /message:send.

For a Knowledge Source, this surface is opt-in source compatibility. A message request should ask for context and receive a context artifact when available.

For the bridge, a message request can include selected Knowledge Source descriptors and receive a completed task containing text plus a llmwiki_agent_result data artifact.

SurfaceOwnerUsed forArtifact
Source HTTPllmwiki-serveDirect retrieval from one projected wiki folder.Context pack, page, search, or graph JSON.
Source MCPllmwiki-serveTool calls for context/search/read/graph/source-bundle/source-refs.Tool result content from the selected source.
Source A2A compatibilityllmwiki-serve, opt-inA2A-native source discovery.llmwiki_context artifact.
Bridge A2Allmwiki-agent-bridgeAnswer synthesis over selected sources.llmwiki_agent_result artifact.
Bridge MCPllmwiki-agent-bridgeOne MCP tool for grounded answering.structuredContent.llmwiki_agent_result.

Source Protocols Accepted by the Bridge

Source protocolBridge behavior
llmwiki-httpCalls GET /source-bundle for discovery when available, falls back to GET /manifest, then calls POST /query on the selected Knowledge Source.
mcpCalls llmwiki_context through the source /mcp endpoint.
a2aDiscovers the agent card, posts a message, and prefers a context artifact.

Versioning Guidance

Protocol changes should be documented in the repository that owns the change and summarized here when they affect cross-repo workflows. Prefer additive fields and preserve existing response shapes for at least one release cycle when possible.

Public-preview documentation for Knowledge Bridge Labs wiki Knowledge Source components.