open-index/open-npm huggingface dataset:
npm package: @mcpservers/prompt-library
Description: MCP Server for Prompt Library
Author: bossying
Latest version: 0.1.0

# 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
```bash
pnpm install
pnpm run build
```

## Usage
1. Start the server:
```bash
pnpm run prompt-library-server
```

2. 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
```bash
pnpm run watch  # Development mode
pnpm run inspector  # Debug mode