fix(tools): address review finding on heterogeneous tool registration and McpToolResponse index signature
This commit is contained in:
1 parent
d9176a258c
commit
3910c5548f
2 files changed
+3
-3
No files matched your search
@@ -7,6 +7,7 @@ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|||||||
import { OpenProjectError } from "../client/errors";
|
import { OpenProjectError } from "../client/errors";
|
||||||
|
|
||||||
export interface McpToolResponse {
|
export interface McpToolResponse {
|
||||||
|
[key: string]: unknown;
|
||||||
content: Array<{ type: "text"; text: string }>;
|
content: Array<{ type: "text"; text: string }>;
|
||||||
isError?: boolean;
|
isError?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,7 +169,6 @@ export const workPackageTools = [listWorkPackagesTool, getWorkPackageTool];
|
|||||||
* Registers all work package tools with an McpServer instance.
|
* Registers all work package tools with an McpServer instance.
|
||||||
*/
|
*/
|
||||||
export function registerWorkPackageTools(server: McpServer): void {
|
export function registerWorkPackageTools(server: McpServer): void {
|
||||||
for (const tool of workPackageTools) {
|
registerTool(server, listWorkPackagesTool);
|
||||||
registerTool(server, tool);
|
registerTool(server, getWorkPackageTool);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user