cpm-server MCP Server

November 25, 2024 ยท View on GitHub

a prompt manager for claude

This is a TypeScript-based MCP server that implements a prompt manager for claude.

Features

  • creating prompts from the command line
  • listing all your saved prompts
  • arguments support (WIP)

Development

Install dependencies:

bun install

Build the server:

bun run build

For development with auto-rebuild:

bun run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "cpm-server": {
      "command": "/path/to/cpm-server/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.