genkitx-prompt-mcp
v0.0.1
Published
MCP server for serving [dot]prompts from a directory
Readme
Genkit Prompt MCP Server
This package provides a way to define prompts in .prompt files and serve them using an MCP (Model Collaboration Platform) server. When used with a compatible client like the Gemini CLI, these prompts appear as custom commands.
Usage
Create a
promptsdirectory: In your project, create a directory to store your prompt files. For example,prompts/.Define your prompts: Inside the
promptsdirectory, create files with the.promptextension. For example,hello.prompt:--- input: schema: name: string --- say: hi {{name}}!Start the MCP server: Run the following command to start the MCP server, pointing it to your prompts directory:
npx -y genkitx-prompt-mcp promptsUse with a client: Now you can use a client that supports MCP, like the Gemini CLI, to interact with your prompts. The prompts will be available as custom commands. For the
hello.promptexample above, you would see a/hello --name=Johncommand.
Learn more about Genkit on https://genkit.dev
Get started with Genkit: https://genkit.dev/docs/get-started/
