Simple Prompt MCP Server
Project description
simple-prompts-mcp
Overview
- A simple MCP server for utilizing prompts.
- Prompts are defined in advance using YAML files.
Defining Prompt Files
Define each prompt in a separate YAML file.
Schema Details
name: string. Identifier for the prompt.description: string. Description of the prompt.arguments: array. Each element is an object with the following properties:name: string. Argument name.description: string. Description of the argument.required: boolean. Whether the argument is required.
prompt: string. The main body of the prompt.
The prompt body (prompt) is dynamically generated using Python'sstr.format()with named arguments.
As shown in the example, you can use placeholders like{user_name}which will be replaced with the provided argument values.
Example
name: example
description: This is a sample prompt.
arguments:
- name: user_name
description: Name of the user
required: true
prompt: |
Hello, {user_name}!
Please create each YAML file according to this schema.
Registering the MCP Server
To register simple-prompts-mcp as an MCP server, add the following to your configuration file.
Note:
Please use Python 3.11 or later withuv.
{
"mcpServers": {
"simple-prompts-mcp": {
"command": "uvx",
"args": ["simple-prompts-mcp"]
}
}
}
Configuration
| Environment Variable | Purpose | Default Value |
|---|---|---|
PROMPTS_DIR |
Directory to store prompt files | ~/.config/simple-prompts-mcp |
{
"mcpServers": {
"simple-prompts-mcp": {
"command": "uvx",
"args": ["simple-prompts-mcp"],
"env": {
"PROMPTS_DIR": "/full-path/to/prompts/dir"
}
}
}
}
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_prompts_mcp-0.1.1.tar.gz.
File metadata
- Download URL: simple_prompts_mcp-0.1.1.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d93dc2a8ef8fd56d8869a9f3e60fbc79806d215484e22f226be0d8a0b78af3f
|
|
| MD5 |
68be9bc36b5d2f4449d6d780eb40dc32
|
|
| BLAKE2b-256 |
e73eb467673b484597ea97d7c61c43308e0876fa46627c00199c3e94a33b144b
|
File details
Details for the file simple_prompts_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: simple_prompts_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3613821678bf905ccdb758ae52858302821f0587bb3cef1a6a3c465ad9b14c2c
|
|
| MD5 |
7bd50ee48167bf9eb5384669c0595ae5
|
|
| BLAKE2b-256 |
cb07ae03d4bfff2deff96c09fc93020ac0b5f9bffbd60576e7b2c01e0856c7f4
|