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

* Updated architecture.md

* Refactor / renamed all addXPrompt, addXTool, and addXResource functions to registerX...

* Added the add tool
This commit is contained in:
cliffhall
2025-12-05 18:43:36 -05:00
parent d868b1c8ac
commit eee9866ebb
11 changed files with 59 additions and 23 deletions

View File

@@ -1,14 +1,14 @@
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { addSimplePrompt } from "./simple.js";
import { addComplexPrompt } from "./complex.js";
import { addPromptWithCompletions } from "./completions.js";
import { registerSimplePrompt } from "./simple.js";
import { registerComplexPrompt } from "./complex.js";
import { registerPromptWithCompletions } from "./completions.js";
/**
* Register the prompts with the MCP server.
* @param server
*/
export const registerPrompts = (server: McpServer) => {
addSimplePrompt(server);
addComplexPrompt(server);
addPromptWithCompletions(server);
registerSimplePrompt(server);
registerComplexPrompt(server);
registerPromptWithCompletions(server);
};