Skip to content

Commit a4a3478

Browse files
feat(mcp): add detail field to docs search tool
1 parent 5f375e8 commit a4a3478

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/mcp-server/src/docs-search-tool.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export const metadata: Metadata = {
1313

1414
export const tool: Tool = {
1515
name: 'search_docs',
16-
description:
17-
'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
16+
description: 'Search for documentation for how to use the client to interact with the API.',
1817
inputSchema: {
1918
type: 'object',
2019
properties: {
@@ -25,7 +24,12 @@ export const tool: Tool = {
2524
language: {
2625
type: 'string',
2726
description: 'The language for the SDK to search for.',
28-
enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
27+
enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
28+
},
29+
detail: {
30+
type: 'string',
31+
description: 'The amount of detail to return.',
32+
enum: ['default', 'verbose'],
2933
},
3034
},
3135
required: ['query', 'language'],

0 commit comments

Comments
 (0)