MCP JSON-RPC 入口
POST
/mcp
const url = 'https://api.intematrix.tech/mcp';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.intematrix.tech/mcp \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {} }'统一的 MCP JSON-RPC 2.0 入口,支持 initialize、tools/list、tools/call、
resources/list、prompts/list 等方法。请求与响应遵循 MCP 规范。
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”JSON-RPC 响应
未鉴权或密钥无效
Media typeapplication/json
object
error
object
code
string
message
string
Example
{ "error": { "code": "unauthorized" }}超出速率限制或配额
Media typeapplication/json
object
error
object
code
string
message
string
Example
{ "error": { "code": "rate_limited" }}