Skip to content

Conversation

@RomKadria
Copy link
Collaborator

No description provided.

Comment on lines +7 to +9
"types": "./dist/esm/mcp/index.d.ts",
"import": "./dist/esm/mcp/index.js",
"require": "./dist/cjs/mcp/index.js",
"types": "./dist/esm/mcp/index.d.ts"
"require": "./dist/cjs/mcp/index.js"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what changed? the order? does it even matter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this is the recommended way, no harm :)

Image

const manageTool = new ManageToolsTool();
manageTool.setToolkitManager(this.dynamicToolManager);
this.registerSingleTool(manageTool as Tool<any, any>);
this.managementTool = manageTool as Tool<any, any>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this casting is a bit smelly, but not urgent for now :)

const mcpTool = this.registerTool(
tool.name,
{
...tool,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yayyyy

@RomKadria RomKadria merged commit 429c0ce into master Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants