mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:03:23 +02:00
[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:
@@ -1,6 +1,6 @@
|
||||
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
||||
|
||||
export const addSimplePrompt = (server: McpServer) => {
|
||||
export const registerSimplePrompt = (server: McpServer) => {
|
||||
server.registerPrompt(
|
||||
"simple-prompt",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user