0.1.0 • Published 10 months ago

@mcpservers/prompt-library v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

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 build

Usage

  1. Start the server:
pnpm run prompt-library-server
  1. Available API Methods:
  • prompts/list - Lists all available prompts
  • prompts/get - Retrieves a specific prompt with optional argument validation

Available Prompts

  1. summarize_structured_markdown

    • Description: Generates a structured Markdown summary
    • Arguments: None
  2. suggest_code_error_fix

    • Description: Suggests fixes for code errors
    • Required Arguments:
      • code_error: The error message
      • function_name: Where error occurred
  3. 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
0.1.0

10 months ago