Optional MCP Adapter
A separate, optional adapter exposes the permitted command catalogue as Model Context Protocol tools and the boundary-approved grid schema as resources. Host applications choose the transport; WarGrid opens no server or port on its own. Any MCP-capable assistant can then operate the grid within the same permissions, validation and confirmation rules.
Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An in-page simulated MCP client is connected via an in-memory transport. The tool list shows only view scopes.
Expected behavior
listTools mirrors the catalogue. Calling a tool runs the full validation and permission pipeline. Mutating tools trigger the in-grid confirmation dialog before the result is returned to the client.
Planned API surface
WarGridMcpAdaptermcp.transportmcp.exposeResourcesadapter.listTools()adapter.callTool(name,args)onMcpToolCallAcceptance criteria
- Tools are generated from the catalogue and change when it changes (pending)
- Every tool call passes schema, permission and confirmation checks (pending)
- Resources respect data boundaries (pending)
- There is no implicit network listener (pending)