Skip to content

chore(mcp): remove researchMode from query-docs tool params#2524

Merged
enesakar merged 1 commit into
masterfrom
chore/hide-research-mode-from-mcp
Apr 28, 2026
Merged

chore(mcp): remove researchMode from query-docs tool params#2524
enesakar merged 1 commit into
masterfrom
chore/hide-research-mode-from-mcp

Conversation

@fahreddinozcan

Copy link
Copy Markdown
Contributor

Hide the researchMode parameter from the MCP tool's input schema so agents stop invoking it. The upstream /api/v2/context route still accepts and serves the parameter; only the MCP-layer surface is removed. Reasoning: several MCP clients hit per-request timeouts (60s defaults in the SDK and in fetch-wrappers) on long-running research calls in ways that can't all be solved server-side. Until the timeout story is reliable across clients, agents shouldn't be able to call it via MCP.

Updates:

  • Drop the researchMode field from the query-docs input schema.
  • Drop the workflow line in the tool description that referenced it.
  • Stop forwarding researchMode to fetchLibraryContext; the field is optional on ContextRequest, so omitting it is equivalent to false.

Hide the `researchMode` parameter from the MCP tool's input schema so
agents stop invoking it. The upstream `/api/v2/context` route still
accepts and serves the parameter; only the MCP-layer surface is
removed. Reasoning: several MCP clients hit per-request timeouts (60s
defaults in the SDK and in fetch-wrappers) on long-running research
calls in ways that can't all be solved server-side. Until the timeout
story is reliable across clients, agents shouldn't be able to call it
via MCP.

Updates:
- Drop the `researchMode` field from the `query-docs` input schema.
- Drop the workflow line in the tool description that referenced it.
- Stop forwarding `researchMode` to fetchLibraryContext; the field is
  optional on ContextRequest, so omitting it is equivalent to false.
@enesakar
enesakar merged commit ff6c1be into master Apr 28, 2026
3 checks passed
@enesakar
enesakar deleted the chore/hide-research-mode-from-mcp branch April 28, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants