PydanticRPC is a Python library for rapidly exposing Pydantic models as gRPC, ConnectRPC, and MCP services without protobuf files.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add pydanticrpc -- python -m pydantic_rpc.core~/.codex/config.toml
[mcp_servers.pydanticrpc]
command = "python"
args = ["-m", "pydantic_rpc.core"]
# codex mcp add pydanticrpc -- python -m pydantic_rpc.core~/.cursor/mcp.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}.vscode/mcp.json
{
"servers": {
"pydanticrpc": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}