[WIP] Refactor everything server to be more modular and use recommended APIs.

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
This commit is contained in:
cliffhall
2025-12-08 17:55:04 -05:00
parent 346c29a086
commit 1df8623bcc
6 changed files with 127 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ 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.
@@ -13,4 +14,5 @@ export const registerTools = (server: McpServer) => {
registerAddTool(server);
registerToggleLoggingTool(server);
registerToggleSubscriberUpdatesTool(server);
registerLongRunningOperationTool(server);
};