Skip to content

Talk to the MCP server

POST
/api/mcp
curl --request POST \
--url https://forge.example.com/api/mcp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"example"'

The Model Context Protocol (version 2025-11-25, also 2025-06-18 and 2025-03-26) over Streamable HTTP, without sessions: one JSON-RPC request in each POST, answered with one JSON object; a notification is answered 202. Methods: initialize, ping, tools/list, tools/call. The tools read the models you can see, check and validate a model, add a revision, link a control’s ticket and list the library, with your own roles and need-to-know. A client of version 2026-07-28 is answered -32022 with the versions supported. A request with an Origin other than the workspace’s own is refused 403. Sign in with a person’s token or a service account’s API key in the Authorization header.

Media typeapplication/json

Example generated

example

One JSON-RPC response: result, or error with the protocol’s code (404 for an unknown method, 400 for a request that is not one, or a version not supported).

Media typeapplication/json
string

Example generated

example

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}