mcp_prompt_mapper
About
Generates optimal Claude/OpenAI-ready prompts to build each part of the MCP server (resources, tools, prompts) from the input generated by `mcp_input_analyzer`.
Details
- Author
- Sumedh1599
- Downloads
- 342
- Categories
- AI
Jump to
- Prompt templating for resources and tools
- Custom output formats: JSON and YAML
- Cross‑API compatibility with Claude, Grok, OpenAI
- Schema‑aware auto‑complete prompts
- Streaming input parsing for Claude Desktop
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
mcp_prompt_mapperCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install via pip (pip install mcp_prompt_mapper) or from source. In code, import PromptMapper, optionally specify output_format='json' or 'yaml', then call generate_prompts(input_data) with a dictionary. Examples for basic, YAML output, and streaming input are provided.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp_prompt_mapper": {
"mcp_prompt_mapper": {
"command": "python",
"args": [
"setup.py",
"install"
]
}
}
}
}
McpServers
{
"mcp_prompt_mapper": {
"command": "python",
"args": [
"setup.py",
"install"
]
}
}
mcp_prompt_mapper
Introduction
mcp_prompt_mapper is an open-source library designed to generate optimal prompts tailored for Claude, Grok, and OpenAI APIs. It transforms input from mcp_input_analyzer into structured, efficient prompts that can be used to build various parts of the MCP server, including resources, tools, and additional prompts.
Features
- Prompt Templating: Generate custom templates for creating resources and tools. - Custom Output Formats: Supports both YAML and JSON formatted outputs optimized for Claude. - Cross-API Compatibility: Works seamlessly with Claude, Grok, and OpenAI APIs. - Schema-aware Auto-complete Prompts: Ensure prompts are schema-compliant using auto-completion features. - Streaming Input Parsing: Efficiently parse streaming inputs directly in Claude Desktop.Installation Instructions
To installmcp_prompt_mapper, you can use pip:
pip install mcp_prompt_mapper
Alternatively, if you prefer to install from the source, clone this repository and run setup.py:
git clone https://github.com/your-repo/mcp_prompt_mapper.git
cd mcp_prompt_mapper
python setup.py install
Usage Examples
Basic Example
Here is a simple example of how to usemcp_prompt_mapper with default settings.
```python
from mcp_prompt_mapper import PromptMapper
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
