Frappe框架下的Model Context Protocol (MCP)服务器的现代容器化Python实现,基于FastMCP构建,使用uv进行依赖管理,并通过Docker进行部署。
git clone https://github.com/appliedrelevance/frappe_mcp_server_uv.git
cd frappe_mcp_server_uv
cp .env.example .env
# 使用您的Frappe凭证编辑.env文件
docker-compose up -d frappe-mcp-server
create_document:创建新的Frappe文档get_document:根据DocType和名称检索文档update_document:更新现有文档delete_document:删除文档list_documents:使用过滤器查询文档call_method:执行白名单内的Frappe方法get_doctype_schema:获取完整的DocType结构get_field_options:获取Link/Select字段选项get_doctype_list:列出可用的DocTypesget_frappe_usage_info:组合的模式和使用信息run_query_report:执行Frappe查询报告get_report_meta:获取报告元数据和结构list_reports:列出可用的报告run_doctype_report:生成基于DocType的报告get_financial_statements:访问损益表、资产负债表、现金流量表ping:服务器健康检查version:获取服务器版本信息validate_auth:检查API凭证状态# 安装开发依赖
uv sync --dev
# 运行测试
uv run pytest
# 格式化代码
uv run black src/ && uv run isort src/
ISC许可证 - 详情见LICENSE文件。 </中文翻译>