异步crud mcp
使用以下组件构建的Python守护进程MCP(模型上下文协议)服务器 FastMCP 它提供了为并发AI代理使用而设计的文件锁定异步CRUD操作。
概述
此服务器通过MCP公开创建、读取、更新和删除工具,并内置文件锁定,以安全地处理来自多个AI代理的并发访问。它作为一个持久的守护进程运行,支持stdio和HTTP(流式HTTP)传输。
特性
- 异步文件锁定CRUD操作
- 多个AI代理的安全并发访问
- 基于FastMCP的MCP服务器(Python 3.12+)
- 支持Stdio和HTTP传输
- 守护进程模式
入门指南
先决条件:Python 3.12+, 紫外线
# Clone the repository
git clone https://github.com/RoscoeTheDog/async-crud-mcp.git
cd async-crud-mcp
# Install dependencies
uv sync
# Run the server (stdio)
uv run python -m async_crud_mcp
# Run the server (HTTP daemon)
uv run python -m async_crud_mcp --transport http --port 8000