Files
servers-modelcontextprotocol/src/everything/prompts/simple.ts
cliffhall eee9866ebb [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
2025-12-05 18:43:36 -05:00

23 lines
493 B
TypeScript

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
export const registerSimplePrompt = (server: McpServer) => {
server.registerPrompt(
"simple-prompt",
{
title: "Simple Prompt",
description: "A prompt with no arguments",
},
() => ({
messages: [
{
role: "user",
content: {
type: "text",
text: "This is a simple prompt without arguments.",
},
},
],
})
);
};