@mcpservers/prompt-library
v0.1.0
Published
MCP Server for Prompt Library
Downloads
6
Readme
Server Prompt Library
Overview
The Server Prompt Library is an MCP server that provides structured prompt templates for various AI interaction patterns. It implements the Model Context Protocol (MCP) specification for JSON-RPC communication.
Features
- Prompt management system with JSON-based definitions
- Argument validation using Zod schemas
- Placeholder replacement in prompt messages
- Standardized JSON-RPC 2.0 error handling
- Three main operations:
- List available prompts
- Get specific prompt with argument validation
- Start server with stdio transport
Installation
pnpm install
pnpm run buildUsage
- Start the server:
pnpm run prompt-library-server- Available API Methods:
prompts/list- Lists all available promptsprompts/get- Retrieves a specific prompt with optional argument validation
Available Prompts
summarize_structured_markdown
- Description: Generates a structured Markdown summary
- Arguments: None
suggest_code_error_fix
- Description: Suggests fixes for code errors
- Required Arguments:
- code_error: The error message
- function_name: Where error occurred
dense_project_summary
- Description: Creates condensed developer briefing
- Arguments: None
Error Handling
The server uses standard JSON-RPC error codes:
- -32602 InvalidParams: Argument validation failed
- -32603 InternalError: Server encountered an issue
Development
pnpm run watch # Development mode
pnpm run inspector # Debug mode