MCP Python Function Generator Server
@Neshri
关于 MCP Python Function Generator Server
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"pythonFunctionGenerator": {
"command": "uv",
"args": [
"run",
"--project",
"/path/to/your/project/MCP_Server",
"mcp-function-generator"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Python Function Generator Server?
An MCP server that exposes a tool to generate Python function code based on a natural language description, with optional human-written test cases for validation.
How to use MCP Python Function Generator Server?
Install the uv package manager, clone or download the repository, run the provided setup script (setup.bat on Windows, setup.sh on Linux/macOS), then configure your MCP client with the command and arguments printed by the script. The server exposes a single tool create_python_function that takes a required requirement string and an optional test_cases array of objects.
Key features of MCP Python Function Generator Server
- Generates Python function code from natural language descriptions.
- Supports optional human-written test cases for validation.
- Parameter names are locked by the first test case's keys.
- Only human‑written tests are allowed; AI-generated tests are not supported.
- Runs locally via the
uvPython package manager. - Automatically validates syntax, function definition, and test results.
Use cases of MCP Python Function Generator Server
- Quickly generate a Python function from a user’s description without tests.
- Generate a Python function that must pass human‑validated test cases.
- Integrate into MCP clients (e.g., Claude Desktop) for on‑demand code generation.
- Use as a teaching or prototyping tool for Python functions.
FAQ from MCP Python Function Generator Server
What dependencies does this server require?
Python and the uv package manager must be installed and available in the system PATH.
Where does the generated code run?
The code runs locally on the user’s machine, within the server’s process.
What transport does the server use?
It uses standard MCP transport (stdio) configured via the client’s settings.
Are test cases generated by an AI allowed?
No. The test_cases argument is intended only for tests written or validated by a human. AI‑generated tests are not supported and may cause incorrect validation.
Does the server support non‑deterministic outputs or floating‑point tolerances?
No. The test comparison uses exact equality (==); non‑deterministic outputs or floating‑point tolerances are not handled automatically.
开发工具 分类下的更多 MCP 服务器
Golf
golf-mcpProduction-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
🔐 ssh-mcp-server
classfang基于 SSH 的 MCP 服务 🧙♀️。已被MCP官方收录 🎉。 SSH MCP Server 🧙♀️. It has been included in the community MCP repository 🎉.
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
评论