MCP server
sieve mcp [dir] serves the index over MCP on stdio. sieve init registers
it for your agents. The registered command is sieve with the argument mcp.
Register by hand
Section titled “Register by hand”Add this to your agent’s MCP config:
{ "mcpServers": { "sieve": { "command": "sieve", "args": ["mcp"] } } }Codex and Grok use TOML:
[mcp_servers.sieve]command = "sieve"args = ["mcp"]Restart the agent after you change its MCP config.
The server has seven tools.
| Tool | Inputs | Use |
|---|---|---|
sieve_query |
query (required), limit, full, in |
Ask in plain words. Like sieve query. |
sieve_find |
pattern (required), in, ignore_case, fixed |
Every match of a pattern. Like sieve find. |
sieve_callers |
symbol (required), direction, depth, in |
Callers or callees. Like sieve callers. |
sieve_symbols |
file (required) |
Signatures of one file. Like sieve symbols. |
sieve_map |
max_dirs, in |
Orientation. Like sieve map. |
sieve_check |
none | Reports drift between the index and the code. |
sieve_why |
symbol (required), all |
The decision records for a symbol. |
Notes:
- The old tool names (
sieve_find_code,sieve_find_all,sieve_trace_calls,sieve_file_api,sieve_skeleton,sieve_repo_map,sieve_check_freshness,sieve_ask,sieve_grep) still run intools/call. The tool list does not show them. directionisin(default) orout.depthis a number, orallfor the full closure.inis a repo-relative path prefix.limitdefaults to 5.max_dirsdefaults to 16.symbolforsieve_whyis a name, a file path orpath:line.
Old names
Section titled “Old names”The old names sieve_ask, sieve_grep, sieve_callers, sieve_skeleton,
sieve_map and sieve_check map to the tools above.