给架构师与运维的四份速览,附一条真实的 MCP 调用。
server + postgres:18 + 媒体卷。POST /api/v1/mcp,标准 JSON-RPC:initialize → tools/list → tools/call。arguments.body。ctx.http 四道闸全在宿主侧:白名单、协议、内网、重定向。# 用 MCP 让 AI 建一个集合(节选)
POST /api/v1/mcp
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": { "name": "data_collection_create",
"arguments": { "name": "stock_ins",
"body": { "title": "入库单",
"fields": [
{ "code": "stock_in_no", "type": "TEXT", "required": true },
{ "code": "amount_total", "type": "AMOUNT" },
{ "code": "status", "type": "ENUM", "options": ["DRAFT", "POSTED"] } ] } } } }