Skip to content

Commit 59c86c6

Browse files
committed
update input
1 parent c20ddf2 commit 59c86c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tools/api_docs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server.registerTool('api_docs', {
66
title: 'API Documentation',
77
description: 'Get a list of all available API methods',
88
inputSchema: {
9-
sourceName: z.string().describe('The name of the API source (e.g., "GitHub") from MCP configuration environment variables. If not provided, docs from all sources will be returned.').optional()
9+
source: z.string().describe('The name of the API source (e.g., "GitHub") from MCP configuration environment variables. If not provided, docs from all sources will be returned.').optional()
1010
},
1111
outputSchema: {
1212
sources: z.array(z.object({
@@ -18,11 +18,11 @@ server.registerTool('api_docs', {
1818
}))
1919
}))
2020
}
21-
}, async ({ sourceName }: { sourceName?: string }) => {
21+
}, async ({ source }: { source?: string }) => {
2222
return {
2323
content: [],
2424
structuredContent: {
25-
sources: (await CacheManager.getDocs(sourceName)).map(doc => ({
25+
sources: (await CacheManager.getDocs(source)).map(doc => ({
2626
name: doc.name,
2727
resources: doc.resources.map(res => ({
2828
name: res.name,

0 commit comments

Comments
 (0)