Skip to content

Commit f10f974

Browse files
clean
1 parent 9a8f9b1 commit f10f974

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/server/api/src/app/ai/mcp/docs-tools.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ type MCPSearchTool = {
1111
) => Promise<unknown>;
1212
};
1313

14+
type MCPHttpTransport = {
15+
type: 'http';
16+
url: string;
17+
};
18+
1419
export async function getDocsTools(): Promise<MCPTool> {
1520
const mcpServerUrl = system.get<string>(AppSystemProp.DOCS_MCP_SERVER_PATH);
1621
if (!mcpServerUrl) {
@@ -28,7 +33,7 @@ export async function getDocsTools(): Promise<MCPTool> {
2833
transport: {
2934
type: 'http',
3035
url: mcpServerUrl,
31-
} as Parameters<typeof createMCPClient>[0]['transport'],
36+
} as MCPHttpTransport,
3237
});
3338

3439
const tools = await client.tools();

0 commit comments

Comments
 (0)