Skip to main content

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's str.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 with uv.

{
    "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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_prompts_mcp-0.1.1.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_prompts_mcp-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for simple_prompts_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8d93dc2a8ef8fd56d8869a9f3e60fbc79806d215484e22f226be0d8a0b78af3f
MD5 68be9bc36b5d2f4449d6d780eb40dc32
BLAKE2b-256 e73eb467673b484597ea97d7c61c43308e0876fa46627c00199c3e94a33b144b

See more details on using hashes here.

File details

Details for the file simple_prompts_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_prompts_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3613821678bf905ccdb758ae52858302821f0587bb3cef1a6a3c465ad9b14c2c
MD5 7bd50ee48167bf9eb5384669c0595ae5
BLAKE2b-256 cb07ae03d4bfff2deff96c09fc93020ac0b5f9bffbd60576e7b2c01e0856c7f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page