Expand description
MCP envelope payloads carried inside the JSON-RPC frames (the
lattice_protocol::jsonrpc types are the envelope; these are the
method-specific bodies).
The wire contract must match VS Code’s so the stock claude CLI talks
to lattice unchanged: MCP protocol version 2024-11-05, a tools
capability with listChanged, and the tool catalog enumerated by
tools/list.
Structs§
- Tool
Descriptor - One MCP tool descriptor as enumerated by
tools/list.
Constants§
- MCP_
PROTOCOL_ VERSION - MCP protocol version lattice advertises. Must match the VS Code
contract the
claudeCLI expects. - SERVER_
NAME - Server name reported in the
initializeresult.
Functions§
- initialize_
result - The
initializeresult body advertised to the agent. - prompts_
list_ result - The
prompts/listresult body — empty; lattice exposes no MCP prompts. - tool_
catalog - The full tool catalog lattice advertises. The tools are stubbed in
I1 (
tools/callreturns “not implemented”); reads land in I2, writes in I3,openDiffin I4. Enumerating them now lets a realclaudeCLI validate the catalog against the VS Code contract during the I0–I2 walking-skeleton phase. - tools_
list_ result - The
tools/listresult body (the enumerated catalog).