dynamic-tool-mcp-server

dynamic-tool-mcp-server

3.3

Dynamic Tool MCP Server is a basic implementation designed for testing MCP clients with dynamic tool management capabilities.

The Dynamic Tool MCP Server is a basic implementation of the Model Control Protocol (MCP) server, specifically designed to test MCP clients. It showcases dynamic tool management, allowing tools to be added at runtime. The server includes two built-in tools: a 'Hello Tool' for simple greetings and an 'Add Tool Tool' for dynamically adding new tools. This server is ideal for testing client implementations, particularly their ability to handle dynamic tool list updates, request and process updated tool lists, and support runtime tool registration. The server runs on http://localhost:4100 by default and can be configured through a JSON file. It is a valuable resource for developers looking to ensure their MCP clients can manage dynamic tool changes effectively.

Features

  • {'name': 'Hello Tool', 'description': 'A simple greeting tool that takes a name parameter and returns a greeting message.'}
  • {'name': 'Add Tool Tool', 'description': 'Dynamically adds new tools to the MCP server and notifies connected clients about the tool list change.'}
  • {'name': 'Dynamic Tool Management', 'description': "Implements MCP protocol's dynamic tool management feature, allowing runtime tool registration and client notifications."}

Usage with Different Platforms

npm_install

bash
npm install

npm_start

bash
npm start

configuration


{
  "mcpServers": {
    "dynamic-tool": {
      "url": "http://localhost:4100/sse"
    }
  }
}