mcp-use TypeScript API
    Preparing search index...

    Class AcquireActiveMCPServerTool

    Reports the MCP server whose tools are currently active.

    Hierarchy

    • MCPServerTool<typeof PresentActiveServerSchema>
      • AcquireActiveMCPServerTool
    Index
    description: string = "Get the currently active MCP (Model Context Protocol) server"

    Tool description exposed to the model.

    name: string = "get_active_mcp_server"

    Tool name exposed to the model.

    schema: ZodObject<{}, $strip> = PresentActiveServerSchema

    Empty input schema.

    • get manager(): IServerManager

      Returns IServerManager

      The server manager operated by this tool.

    • Returns Promise<string>

      A message identifying the active server, or stating there is none.