MCP.so
ログイン

Prompt Decorators

@synaptiai

Prompt Decorators について

A standardized framework for enhancing how LLMs process and respond to prompts through composable decorators, featuring an official open standard specification and Python reference implementation. Claude Code plugin and MCP server integration.

基本情報

カテゴリ

開発者ツール

ライセンス

Apache-2.0

ランタイム

python

トランスポート

stdio

公開者

synaptiai

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "prompt-decorators": {
      "command": "python",
      "args": [
        "-m",
        "prompt_decorators",
        "verify"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Prompt Decorators?

Prompt Decorators is a comprehensive framework that standardizes how prompts for Large Language Models (LLMs) are enhanced, structured, and transformed. It includes both an official specification and a Python reference implementation, plus a Model Context Protocol (MCP) server that enables decorator functionality in tools like Claude Desktop.

How to use Prompt Decorators?

Install the package via pip install prompt-decorators (or with [mcp] for MCP integration). Load decorator definitions, create decorator instances with parameters, and apply them to prompts. The MCP server can be run alongside Claude Desktop for on‑the‑fly decorator usage.

Key features of Prompt Decorators

  • Standardized annotation system inspired by software design patterns
  • 140+ pre‑built decorators for reasoning, formatting, and more
  • Registry‑based decorator management with parameter validation
  • Composability: combine multiple decorators cleanly
  • MCP server integration for desktop AI applications
  • Claude Code plugin with inline sigil expansion

Use cases of Prompt Decorators

  • Craft prompts for specific reasoning patterns (e.g., StepByStep, Reasoning)
  • Structure outputs in consistent formats with OutputFormat decorators
  • Ensure uniform model behavior across different LLMs and platforms
  • Reduce token consumption by replacing verbose instructions with concise annotations

FAQ from Prompt Decorators

What are Prompt Decorators?

Prompt Decorators are composable annotations (e.g., +++Reasoning(depth=comprehensive)) that modify LLM behavior without rewriting the core prompt.

How do I install Prompt Decorators?

Run pip install prompt-decorators. For MCP integration, use pip install "prompt-decorators[mcp]".

What is the MCP server for?

The MCP server enables prompt decorator functionality in tools like Claude Desktop, allowing users to apply decorators directly within those applications.

Does Prompt Decorators work with any LLM?

Yes, the specification is platform‑agnostic. The Python implementation and MCP server work with any LLM that accepts prompt modifications.

Where do decorators get defined?

Decorators are defined in a standardized JSON registry and loaded at runtime. The package includes a comprehensive library of 140+ built‑in decorators.

コメント

「開発者ツール」の他のコンテンツ