We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a8f9b1 commit f10f974Copy full SHA for f10f974
1 file changed
packages/server/api/src/app/ai/mcp/docs-tools.ts
@@ -11,6 +11,11 @@ type MCPSearchTool = {
11
) => Promise<unknown>;
12
};
13
14
+type MCPHttpTransport = {
15
+ type: 'http';
16
+ url: string;
17
+};
18
+
19
export async function getDocsTools(): Promise<MCPTool> {
20
const mcpServerUrl = system.get<string>(AppSystemProp.DOCS_MCP_SERVER_PATH);
21
if (!mcpServerUrl) {
@@ -28,7 +33,7 @@ export async function getDocsTools(): Promise<MCPTool> {
28
33
transport: {
29
34
type: 'http',
30
35
url: mcpServerUrl,
31
- } as Parameters<typeof createMCPClient>[0]['transport'],
36
+ } as MCPHttpTransport,
32
37
});
38
39
const tools = await client.tools();
0 commit comments