MCP
Lattice exposes an MCP Streamable HTTP service at:
text
/mcpAgent identity is read from the MCP-Client header and written into audit fields.
Tool Set
lattice_list_projectslattice_create_projectlattice_list_taskslattice_create_tasklattice_move_tasklattice_update_spec_sectionlattice_ask_questionlattice_answer_questionlattice_board_summary
Runtime Notes
- If
LATTICE_TOKENis enabled, MCP callers must sendAuthorization: Bearer <token>. - Mutating tools emit SSE events and webhook events just like REST mutations.
lattice_board_summaryis tuned for low token orientation context.
Client Setup
Base URL used in all examples:
text
http://127.0.0.1:7400/mcpCodex CLI
Add to ~/.codex/config.toml:
toml
[mcp_servers.lattice]
url = "http://127.0.0.1:7400/mcp"If auth is enabled, include:
toml
[mcp_servers.lattice]
url = "http://127.0.0.1:7400/mcp"
bearer_token_env_var = "LATTICE_TOKEN"Cursor
Add to .cursor/mcp.json:
json
{
"mcpServers": {
"lattice": {
"url": "http://127.0.0.1:7400/mcp"
}
}
}If auth is enabled, add Authorization in the server headers:
json
{
"mcpServers": {
"lattice": {
"url": "http://127.0.0.1:7400/mcp",
"headers": {
"Authorization": "Bearer <LATTICE_TOKEN>"
}
}
}
}VS Code
Add to .vscode/mcp.json:
json
{
"servers": {
"lattice": {
"type": "http",
"url": "http://127.0.0.1:7400/mcp"
}
}
}Quick Verify
- Start Lattice with
lattice. - Reload your MCP client.
- Ask the client to run
lattice_list_projects.