Talk to the MCP server
const url = 'https://forge.example.com/api/mcp';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '"example"'};
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://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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Example generated
exampleResponses
Section titled “Responses”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).
Example generated
exampledefault
Section titled “default”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.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}