Skip to content

Commit 936829c

Browse files
committed
refactor: remove component schemas mcp tool
1 parent 083adc0 commit 936829c

7 files changed

Lines changed: 1 addition & 389 deletions

File tree

src/__tests__/__snapshots__/server.test.ts.snap

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ exports[`runServer should allow server to be stopped, http stop server: diagnost
4848
[
4949
"Registered tool: searchPatternFlyDocs",
5050
],
51-
[
52-
"Registered tool: componentSchemas",
53-
],
5451
[
5552
"test-server server running on HTTP transport",
5653
],
@@ -113,9 +110,6 @@ exports[`runServer should allow server to be stopped, stdio stop server: diagnos
113110
[
114111
"Registered tool: searchPatternFlyDocs",
115112
],
116-
[
117-
"Registered tool: componentSchemas",
118-
],
119113
[
120114
"test-server server running on stdio transport",
121115
],
@@ -643,9 +637,6 @@ exports[`runServer should attempt to run server, use default tools, http: diagno
643637
[
644638
"Registered tool: searchPatternFlyDocs",
645639
],
646-
[
647-
"Registered tool: componentSchemas",
648-
],
649640
[
650641
"test-server-2 server running on HTTP transport",
651642
],
@@ -676,7 +667,6 @@ exports[`runServer should attempt to run server, use default tools, http: diagno
676667
"registerTool": [
677668
"usePatternFlyDocs",
678669
"searchPatternFlyDocs",
679-
"componentSchemas",
680670
],
681671
}
682672
`;
@@ -729,9 +719,6 @@ exports[`runServer should attempt to run server, use default tools, stdio: diagn
729719
[
730720
"Registered tool: searchPatternFlyDocs",
731721
],
732-
[
733-
"Registered tool: componentSchemas",
734-
],
735722
[
736723
"test-server-1 server running on stdio transport",
737724
],
@@ -762,7 +749,6 @@ exports[`runServer should attempt to run server, use default tools, stdio: diagn
762749
"registerTool": [
763750
"usePatternFlyDocs",
764751
"searchPatternFlyDocs",
765-
"componentSchemas",
766752
],
767753
}
768754
`;

src/__tests__/__snapshots__/tool.componentSchemas.test.ts.snap

Lines changed: 0 additions & 173 deletions
This file was deleted.

src/__tests__/tool.componentSchemas.test.ts

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { registerResource } from './mcpSdk';
99
import { setMetaResources } from './server.resourceMeta';
1010
import { usePatternFlyDocsTool } from './tool.patternFlyDocs';
1111
import { searchPatternFlyDocsTool } from './tool.searchPatternFlyDocs';
12-
import { componentSchemasTool } from './tool.componentSchemas';
1312
import { patternFlyComponentsIndexResource } from './resource.patternFlyComponentsIndex';
1413
import { patternFlyContextResource } from './resource.patternFlyContext';
1514
import { patternFlyDocsIndexResource } from './resource.patternFlyDocsIndex';
@@ -209,8 +208,7 @@ interface ServerInstance {
209208
*/
210209
const builtinTools: McpToolCreator[] = [
211210
usePatternFlyDocsTool,
212-
searchPatternFlyDocsTool,
213-
componentSchemasTool
211+
searchPatternFlyDocsTool
214212
];
215213

216214
/**

0 commit comments

Comments
 (0)