[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
|
|
@ -2,7 +2,7 @@ import { z } from "zod";
|
|||
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
||||
import { completable } from "@modelcontextprotocol/sdk/server/completable.js";
|
||||
|
||||
export const addPromptWithCompletions = (server: McpServer) => {
|
||||
export const registerPromptWithCompletions = (server: McpServer) => {
|
||||
const promptArgsSchema = {
|
||||
department: completable(z.string(), (value) => {
|
||||
return ["Engineering", "Sales", "Marketing", "Support"].filter((d) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue