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.

Context retrieval over HTTP is POST /query. llmwiki_context is the MCP tool name. Clients should not assume an HTTP /context route exists.

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
    }
  }
}

MCP Streamable HTTP ​

llmwiki-serve==0.2.11 extends /mcp/stream for SDK-backed MCP Streamable HTTP source access. For MCP 2026-07-28, clients can call server/discover before tools/list and tools/call. Discovery and tool-list responses include supported protocol versions, private cache hints, server metadata, output schemas, and read-only tool annotations. Tool calls return the same source evidence under structuredContent and do not require a session id.

Use /mcp/stream when the client supports current MCP discovery and wants the source server to advertise progressive metadata. Use /mcp for older JSON-RPC-only clients that already know the source tool names.

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-bridgellmwiki_agent_run for full grounded answers plus read-only source tools for progressive exploration.structuredContent.llmwiki_agent_result for full runs, or structured source-tool results such as structuredContent.llmwiki_context.

External gateways may front the bridge MCP or HTTP surfaces when the operator owns ingress, identity, policy, routing, TLS, scaling, and hosted operations. The bridge remains the LLMWiki evidence target behind that boundary. See External Gateways.

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_source_bundle for discovery when available, then calls llmwiki_context through the source /mcp endpoint.
a2aDiscovers the agent card, posts a message, and prefers a context artifact.

Bridge MCP source-tool results may carry the closed camelCase guidance shape under structuredContent.llmwiki_context:

json
{
  "structuredContent": {
    "llmwiki_context": {
      "retrievalGuidance": {
        "schemaVersion": "llmwiki.retrieval_guidance.v1",
        "orientationSource": "authored",
        "contentTrust": "untrusted_source_evidence",
        "maxQueryVariants": 2,
        "characterBudget": 4000,
        "folderCards": [],
        "pageCards": [],
        "suggestedTerms": ["release"],
        "exactIdentifiers": ["publish.yml"],
        "fallbackModes": ["literal"]
      }
    }
  }
}

Search intent is a separate bridge source-tool argument:

json
{
  "query": "release readiness",
  "retrieval": {
    "schemaVersion": "llmwiki.retrieval.v1",
    "searchMode": "lexical",
    "search": {
      "queryVariants": ["릴리스 체크리스트", "publish.yml"]
    }
  }
}

The bridge forwards variants only when the source advertises llmwiki_agent_guided_lexical_v1 exactly. Older sources keep query-only behavior.

Bridge MCP 2026-07-28 Compatibility Slice ​

llmwiki-agent-bridge documents a conservative MCP 2026-07-28 bridge compatibility slice: server/discover, version advertising, sessionless tools/list, and sessionless tools/call for llmwiki_agent_run and read-only source tools. Version 0.6.0 adds progressive gateway tool exposure on top of that bridge surface. Operators should validate external gateways against the exact methods they expose, including request _meta, resultType handling, caching behavior, and transport policy.

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.