Skip to content

Commit 49ddc76

Browse files
authored
Document result limits for MCP tools (#1395)
Closes SPLF-1441 <img width="1456" height="442" alt="CleanShot 2025-10-29 at 10 41 20" src="http://github.com/%3Ca%20href="https://github.com/user-attachments/assets/cbefe357-ee19-4dd5-a5c2-0ac0b3fb2db8">https://github.com/user-attachments/assets/cbefe357-ee19-4dd5-a5c2-0ac0b3fb2db8" />
1 parent e5fee88 commit 49ddc76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/api/mcp/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TierCallout>
66
Supported on [Enterprise](/pricing/enterprise) plans.
77
</TierCallout>
8-
<Callout type="note">Available in version 6.8 and above</Callout>
8+
<Callout type="note">Available in version 6.8 and above.</Callout>
99
<Callout type="note">This feature is [experimental](admin/beta_and_experimental_features#experimental-features) and might change or be removed in the future.</Callout>
1010

1111
The Sourcegraph Model Context Protocol (MCP) Server provides AI agents and applications with programmatic access to your Sourcegraph instance's code search, navigation, and analysis capabilities through a standardized interface.
@@ -134,6 +134,10 @@ Locally-scoped servers take precedence over project-scoped servers with the same
134134

135135
## Available Tools
136136

137+
<Callout type="info">
138+
All MCP tools implement result limits to ensure efficient operation and prevent context window overflow. These limits are designed to return the most relevant results while maintaining optimal performance. For large result sets, use pagination parameters (`after`/`before` cursors) where available, or refine your search with more specific filters.
139+
</Callout>
140+
137141
The MCP server provides these tools for code exploration and analysis:
138142

139143
### File & Repository Operations
@@ -188,10 +192,6 @@ Perform exact keyword searches with boolean operators and filters.
188192

189193
**Features:** Boolean AND/OR operators, regex patterns
190194

191-
<Callout type="info">
192-
The `sg_keyword_search` MCP tool currently returns structured content wrapped in an extra content field. This mismatch can trigger validation errors in strict MCP clients, such as the Python MCP client. A fix is planned for a future release; for now, affected clients can manually unwrap the content field as a workaround.
193-
</Callout>
194-
195195
#### `sg_nls_search`
196196

197197
Semantic search with flexible linguistic matching.

0 commit comments

Comments
 (0)