[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:
parent
d868b1c8ac
commit
eee9866ebb
1 changed files with 59 additions and 23 deletions
|
|
@ -13,7 +13,7 @@ const config = {
|
|||
inputSchema: EchoSchema,
|
||||
};
|
||||
|
||||
export const addToolEcho = (server: McpServer) => {
|
||||
export const registerEchoTool = (server: McpServer) => {
|
||||
server.registerTool(name, config, async (args): Promise<CallToolResult> => {
|
||||
const validatedArgs = EchoSchema.parse(args);
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue