TriSeek exposes a local stdio MCP server for Claude Code, Codex, and other MCP-capable clients. It is local-only, search-only, and routes each query through TriSeek's indexed, direct-scan, or ripgrep fallback path as needed.
# Claude Code (user-level by default) triseek install claude-code # Codex triseek install codex # OpenCode triseek install opencode # Pi triseek install pi # Verify triseek doctor
Use triseek install claude-code --scope project if you want a shareable repo-local Claude Code install via .mcp.json.
Run the server manually from the target root:
cd /path/to/repo triseek mcp serve
Or override the root explicitly:
triseek mcp serve --repo /path/to/repo
All logs go to stderr. Stdout carries JSON-RPC frames only.
Every successful search result includes these fields:
| Tool | Purpose |
|---|---|
| find_files | Path and filename substring search |
| search_content | Literal or regex content search |
| search_path_and_content | Narrow by glob, then search file content |
| index_status | Report whether a TriSeek index exists and is healthy for the current root |
| reindex | Run incremental update or full rebuild |
{
"query": "parse_arguments",
"mode": "literal",
"limit": 20
}
{
"path_query": "src/**/*.rs",
"content_query": "Result<",
"mode": "literal",
"limit": 20
}
Tool execution failures return a successful JSON-RPC response with CallToolResult.isError = true and a structured error body.
| Code | Meaning |
|---|---|
| INDEX_UNAVAILABLE | No index exists for this root |
| INDEX_STALE | Index is out of date; call reindex |
| INVALID_QUERY | Missing or invalid arguments |
| REPO_NOT_DETECTED | Could not resolve a repo root |
| BACKEND_FAILURE | Search backend failed internally |
| FALLBACK_FAILURE | ripgrep or direct scan failed |
| CONFIG_WRITE_FAILED | Install or uninstall config update failed |
| CLIENT_NOT_INSTALLED | Required client CLI is missing from PATH |
(path, line)
This keeps responses well within normal MCP output budgets.
triseek install claude-code --scope <scope>, reload the workspace, then run claude mcp list.
triseek install codex, restart Codex, then run codex mcp list.
triseek build <PATH> or call reindex.
triseek mcp serve.