Skip to content

creation of a tool without any server instance knowledge #2298

@paztis

Description

@paztis

For now we can only create a tool with server.registerTool(name, options, callback)
I means to create one tool I'm force to have already create the server an to have its instance

In opposite, in Langchain management, you create tools with import {tool} from '@langchain/core/tools'; function and create the tool anywhere,
Then you associate it with the graph / llm you want

The advantage of the Langchain management is I can for example create a library of tools, then in another package, create a server and associate the tools to it.

Here I cannot. Or I miss something in the documentation ?

Is there's any way to construct a tool outside of a mcpServer instance ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for a new feature that's not currently supported

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions