POST
/
mcp
curl --request POST \
  --url https://api.jinbatrail.indx.jp/mcp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}
'
{
  "jsonrpc": "<string>",
  "id": "<string>",
  "result": {},
  "error": {
    "code": 123,
    "message": "<string>"
  }
}
{
"jsonrpc": "<string>",
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>"
}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}

承認

Authorization
string
header
必須

An org-scoped API key, format jbt_live_<rand> or jbt_test_<rand> (packages/service/src/auth.ts's issueApiKey). Minted via POST /api/keys; the plaintext is shown exactly once. Two boundaries are enforced on every call: (1) test/live — a jbt_test_* key is rejected with 403 test_key_forbidden on any automation that declares a secret-typed input, even unsupplied; only a jbt_live_* key can exercise production credentials. (2) per-key scope — an optional automation-name allowlist set at mint time; an unscoped key (the default) reaches every published automation in its org. Used ONLY on POST /v1/run/:flow and POST /mcp — every other route uses cookieAuth.

ボディ

application/json

A standard JSON-RPC 2.0 request/notification, per the MCP spec (initialize, tools/list, tools/call, …). The MCP TypeScript SDK owns the exact per-method params shapes; not re-specified here.

jsonrpc
string
必須
Allowed value: "2.0"
method
string
必須
id
params
object

レスポンス

A JSON-RPC response (default) or a text/event-stream of one or more SSE events carrying the same JSON-RPC payload, depending on the negotiated Accept order.

A standard JSON-RPC 2.0 response — either result or error, never both.

jsonrpc
string
必須
Allowed value: "2.0"
id
必須
result
object
error
object