Skip to content

Commit d2fa014

Browse files
authored
Add evaluator to MCP tools list, document missing endpoint (#1769)
1 parent 27b97ca commit d2fa014

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

docs/api/mcp/index.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ This works similarly for other MCP-compatible agents. See [Client Integrations](
3737

3838
The MCP server provides different tool suites for various use cases:
3939

40-
| Endpoint | Description |
41-
| ---------------------- | ------------------------------- |
42-
| `/.api/mcp` | Full suite of Sourcegraph tools |
43-
| `/.api/mcp/deepsearch` | Deep Search agent |
40+
| Endpoint | Description |
41+
| ---------------------- | ----------------------------------- |
42+
| `/.api/mcp` | Core Sourcegraph search tools |
43+
| `/.api/mcp/all` | Full suite of Sourcegraph tools |
44+
| `/.api/mcp/deepsearch` | Deep Search agent |
4445

4546
Example URL:
4647

@@ -264,6 +265,17 @@ Semantic search with flexible linguistic matching.
264265

265266
**Features:** Flexible linguistic matching, stemming, broader results than keyword search
266267

268+
#### `evaluator`
269+
270+
Run sandboxed Lua scripts for aggregation, cross-referencing, and computation over search results.
271+
272+
**Parameters:**
273+
274+
- `script` - Lua script to execute against Sourcegraph search results (required)
275+
276+
**Use cases:** Counting or aggregating many search matches, cross-referencing multiple searches, transforming or combining search output with custom logic
277+
278+
267279
### Code Navigation
268280

269281
#### `go_to_definition`

0 commit comments

Comments
 (0)