@modelcontextprotocol/server-everything
Version:
MCP server that exercises all the features of the MCP protocol
26 lines (25 loc) • 693 B
JavaScript
import { PROMPT_ICONS } from "../server/icons.js";
/**
* Register a simple prompt with no arguments
* - Returns the fixed text of the prompt with no modifications
*
* @param server
*/
export const registerSimplePrompt = (server) => {
// Register the prompt
server.registerPrompt("simple-prompt", {
title: "Simple Prompt",
icons: PROMPT_ICONS,
description: "A prompt with no arguments",
}, () => ({
messages: [
{
role: "user",
content: {
type: "text",
text: "This is a simple prompt without arguments.",
},
},
],
}));
};