Skip to main content

prompt-optimizer-mcp v1.1.1

作者 / Author: goodie1972 GitHub: https://github.com/goodie1972/prompt-optimizer PyPI: https://pypi.org/project/prompt-optimizer-mcp/1.1.1/


简介 / Introduction

中文: 一个 ZCode 提示词优化 MCP 工具包,提供 optimize_prompt MCP 工具和 /optimize 命令,通过 LLM 优化提示词,使其更清晰、更具体、更可执行。

English: A ZCode prompt optimizer MCP package that provides the optimize_prompt MCP tool and /optimize command. It uses LLM to refine prompts, making them clearer, more specific, and more actionable.


安装 / Installation

中文

pip install prompt-optimizer-mcp

English

pip install prompt-optimizer-mcp

在 ZCode 中使用 / Usage in ZCode

中文

安装后在 ZCode 的 MCP 配置中添加:

English

After installation, add the following to your ZCode MCP configuration:

{
  "mcpServers": {
    "prompt-optimizer": {
      "command": "prompt-optimizer-mcp",
      "env": {}
    }
  }
}

配置 / Configuration

中文

~/.zcode/mcp/prompt-optimizer/.env 中设置 API Key:

OPTIMIZE_API_KEY=你的key
OPTIMIZE_BASE_URL=https://你的地址/v1
OPTIMIZE_MODEL=模型名

或直接设置环境变量:

AGNES_API_KEY=...
# 或 / or
OPENAI_API_KEY=...

English

Set your API Key in ~/.zcode/mcp/prompt-optimizer/.env:

OPTIMIZE_API_KEY=your-api-key
OPTIMIZE_BASE_URL=https://your-endpoint/v1
OPTIMIZE_MODEL=model-name

Or set environment variables directly:

AGNES_API_KEY=...
# or
OPENAI_API_KEY=...

使用 / Usage

中文

作为 MCP 工具: AI 在对话中自动调用 optimize_prompt 工具:

optimize_prompt(prompt="写一个Python脚本读取CSV")
# 返回:写一个Python脚本,读取指定路径的CSV文件...

作为命令行工具: 启动 MCP 服务器:

prompt-optimizer-mcp

English

As an MCP tool: The AI automatically invokes the optimize_prompt tool during conversations:

optimize_prompt(prompt="Write a Python script to read a CSV file")
# Returns: Write a Python script that reads a CSV file from a specified path...

As a CLI tool: Start the MCP server:

prompt-optimizer-mcp

更新日志 / Changelog

v1.1.1

  • 中文: 文档更新为双语(中英文);添加 GitHub 和 PyPI 链接
  • English: Documentation updated to bilingual (Chinese/English); added GitHub and PyPI links

v1.1.0

  • 中文: 兼容 mcp 2.0.0(FastMCPMCPServer);依赖更新:mcp>=2.0.0
  • English: Compatible with mcp 2.0.0 (FastMCPMCPServer); dependency updated: mcp>=2.0.0

v1.0.0

  • 中文: 初始发布
  • English: Initial release

链接 / Links


许可证 / License

MIT

Download files

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

Source Distribution

prompt_optimizer_mcp-1.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

prompt_optimizer_mcp-1.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file prompt_optimizer_mcp-1.1.1.tar.gz.

File metadata

  • Download URL: prompt_optimizer_mcp-1.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for prompt_optimizer_mcp-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a19202cc093d6d397fe05c0f98aba216d3b749c81aa97f8fc8cdf790de1e75c7
MD5 a1627533c9bfc0733e334842cefbc90b
BLAKE2b-256 6abc5cd22912e014eddf444946fe7c1feb713c952c4ed7ed1a534403fe269074

See more details on using hashes here.

File details

Details for the file prompt_optimizer_mcp-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prompt_optimizer_mcp-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4936f5266b3d3fc3b6e0bcfd35e2441585511be092c63a058de4e1fc4c4ba6e2
MD5 cd5c7a7067f27ba4f68729bd55f734c7
BLAKE2b-256 19f0105f2531c413feaa7599294993d1507d367fd3397205e4199bec88d7c1a0

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.0

2 files

This release

1.1.1 This release

2 files

1.1.0

2 files

Supported by

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