mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-23 09:15:38 +02:00
Added long-running-operation tool and improved comments in all tools
* Updated architecture.md
* In tools/
- add.ts
- echo.ts
- toggle-logging.ts
- toggle-subscriber-updates.ts
- Add better function and inline docs
* Added tools/long-running-operation.ts
- similar implementation as in everything v1
* In tools/index.ts
- import registerLongRunningOperationTool
- in registerTools
- registerLongRunningOperationTool
19 lines
699 B
TypeScript
19 lines
699 B
TypeScript
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
import { registerEchoTool } from "./echo.js";
|
|
import { registerAddTool } from "./add.js";
|
|
import { registerToggleLoggingTool } from "./toggle-logging.js";
|
|
import { registerToggleSubscriberUpdatesTool } from "./toggle-subscriber-updates.js";
|
|
import { registerLongRunningOperationTool } from "./long-running-operation.js";
|
|
|
|
/**
|
|
* Register the tools with the MCP server.
|
|
* @param server
|
|
*/
|
|
export const registerTools = (server: McpServer) => {
|
|
registerEchoTool(server);
|
|
registerAddTool(server);
|
|
registerToggleLoggingTool(server);
|
|
registerToggleSubscriberUpdatesTool(server);
|
|
registerLongRunningOperationTool(server);
|
|
};
|