Skip to main content

Internal MCP pacts

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: internal-mcp-pacts · 4 operations

POST /v1/internal/mcp/pacts/can-i-deploy​

Can I deploy? for the MCP pact.can_i_deploy tool

Internal (X-Internal-Service-Token). GET …/pact-broker/can-i-deploy: one pacticipant version to toEnvironment or toTag (exactly one). The same bounded answer as the matrix route; retryAfterSeconds is set while the verdict is unknown. Requires the key owner's pacts:view.

Operation id: mcp_pact_can_i_deploy_v1_internal_mcp_pacts_can_i_deploy_post

Parameters

NameInTypeRequiredDescription
X-Internal-Service-Tokenheaderstring or nullnoHeader parameter: X Internal Service Token.

Request body (required)

Request body for can i deploy? for the mcp pact.can_i_deploy tool.

Responses

StatusDescriptionBody
200Successful response for can i deploy? for the mcp pact.can_i_deploy tool.application/json McpPactMatrixResponse
400pact-matrix-invalid or mcp-pact-invalid: the request cannot be answered as sent.—
403mcp-pact-key-unknown, mcp-pact-key-has-no-owner, the key's owner lacks pacts, or mcp-pact-agent-action-off / mcp-pact-agent-production: the workspace's Agents switches refuse it (audited as pacts.agent.refused).—
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/internal/mcp/pacts/list​

Latest pacts for the MCP pact.list tool

Internal (X-Internal-Service-Token). The latest pact of every consumer → provider integration of the tenant, with its latest verification result; optional provider / consumer filters; cursor-paginated. Requires the key owner's pacts:view.

Operation id: mcp_pact_list_v1_internal_mcp_pacts_list_post

Parameters

NameInTypeRequiredDescription
X-Internal-Service-Tokenheaderstring or nullnoHeader parameter: X Internal Service Token.

Request body (required)

Request body for latest pacts for the mcp pact.list tool.

Responses

StatusDescriptionBody
200Successful response for latest pacts for the mcp pact.list tool.application/json McpPactListResponse
400pact-matrix-invalid or mcp-pact-invalid: the request cannot be answered as sent.—
403mcp-pact-key-unknown, mcp-pact-key-has-no-owner, the key's owner lacks pacts, or mcp-pact-agent-action-off / mcp-pact-agent-production: the workspace's Agents switches refuse it (audited as pacts.agent.refused).—
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/internal/mcp/pacts/matrix​

Matrix query for the MCP pact.matrix tool

Internal (X-Internal-Service-Token). GET …/pact-broker/matrix from structured selectors: the verdict (summary.deployable true / false / null), its notices and at most maxRows compact rows, with rowsTotal and rowsTruncated. latestby is one of cvp, cvpv, cp. Requires the key owner's pacts:view.

Operation id: mcp_pact_matrix_v1_internal_mcp_pacts_matrix_post

Parameters

NameInTypeRequiredDescription
X-Internal-Service-Tokenheaderstring or nullnoHeader parameter: X Internal Service Token.

Request body (required)

Request body for matrix query for the mcp pact.matrix tool.

Responses

StatusDescriptionBody
200Successful response for matrix query for the mcp pact.matrix tool.application/json McpPactMatrixResponse
400pact-matrix-invalid or mcp-pact-invalid: the request cannot be answered as sent.—
403mcp-pact-key-unknown, mcp-pact-key-has-no-owner, the key's owner lacks pacts, or mcp-pact-agent-action-off / mcp-pact-agent-production: the workspace's Agents switches refuse it (audited as pacts.agent.refused).—
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/internal/mcp/pacts/record-deployment​

Record a deployment for the MCP pact.record_deployment tool

Internal (X-Internal-Service-Token). pact-broker record-deployment: the version is now deployed to the named environment (and application instance); the previous deployment there is marked undeployed. created: false when it already was the current deployment. Requires the key owner's pacts:create.

Operation id: mcp_pact_record_deployment_v1_internal_mcp_pacts_record_deployment_post

Parameters

NameInTypeRequiredDescription
X-Internal-Service-Tokenheaderstring or nullnoHeader parameter: X Internal Service Token.

Request body (required)

Request body for record a deployment for the mcp pact.record_deployment tool.

Responses

StatusDescriptionBody
200Successful response for record a deployment for the mcp pact.record_deployment tool.application/json McpPactDeploymentResponse
400pact-matrix-invalid or mcp-pact-invalid: the request cannot be answered as sent.—
403mcp-pact-key-unknown, mcp-pact-key-has-no-owner, the key's owner lacks pacts, or mcp-pact-agent-action-off / mcp-pact-agent-production: the workspace's Agents switches refuse it (audited as pacts.agent.refused).—
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found.—
422pact-deployment-invalid: a malformed application instance.—

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

McpPactCanIDeployRequest​

pact.can_i_deploy: one version to an environment or a tag.

PropertyTypeRequiredDescription
tenantIdstringyesThe MCP key's tenant (trusted: internal route).
keyIdstringyesThe MCP key; its owner's pacts role is applied.
pacticipantstringyesWhat is being deployed.
versionstringyesIts version number, exactly as recorded.
toEnvironmentstring or nullnoWhere it goes.
toTagstring or nullnoOr: the tag it is checked against.
ignorearray of McpPactIgnorenoRows that do not count.
maxRowsintegernoThe most rows returned (the verdict reads them all).

McpPactDeploymentResponse​

The recorded deployment.

PropertyTypeRequiredDescription
createdbooleanyesFalse when this version already was the current deployment there.
deploymentobjectyesDeployment.

McpPactListRequest​

pact.list: optional filters and a page.

PropertyTypeRequiredDescription
tenantIdstringyesThe MCP key's tenant (trusted: internal route).
keyIdstringyesThe MCP key; its owner's pacts role is applied.
providerstring or nullnoOnly pacts for this provider (handle, id or name).
consumerstring or nullnoOnly pacts of this consumer (handle, id or name).
limitintegernoPacts per page.
cursorstring or nullnonextCursor of the previous page.

McpPactListResponse​

One page of pacts.

PropertyTypeRequiredDescription
itemsarray of objectyesItems.
hasMorebooleanyesHas More.
nextCursorstring or nullnoNext Cursor.

McpPactMatrixRequest​

pact.matrix: the selectors and options of a broker matrix query.

PropertyTypeRequiredDescription
tenantIdstringyesThe MCP key's tenant (trusted: internal route).
keyIdstringyesThe MCP key; its owner's pacts role is applied.
selectorsarray of McpPactSelectoryesThe versions in question (1 or more).
latestbyenum "cvp", "cvpv", "cp" or nullnoHow rows collapse.
toEnvironmentstring or nullnoDestination: everything in this environment.
toTagstring or nullnoDestination: the latest version with this tag.
latestboolean or nullnoDestination: each other pacticipant's latest.
mainBranchboolean or nullnoDestination: each other pacticipant's main branch.
ignorearray of McpPactIgnorenoRows that do not count.
limitinteger or nullnoThe most rows the query reads.
maxRowsintegernoThe most rows returned (the verdict reads them all).

McpPactMatrixResponse​

The verdict and a bounded set of the rows it was reached from.

PropertyTypeRequiredDescription
summaryobjectyesShort summary suitable for navigation and reference docs.
noticesarray of objectyesNotices.
noticesTruncatedbooleanyesNotices Truncated.
rowsarray of objectyesRows.
rowsTotalintegeryesRows Total.
rowsTruncatedbooleanyesRows Truncated.
retryAfterSecondsinteger or nullnoRetry After Seconds.

McpPactRecordDeploymentRequest​

pact.record_deployment: a version is now deployed to a named environment.

PropertyTypeRequiredDescription
tenantIdstringyesThe MCP key's tenant (trusted: internal route).
keyIdstringyesThe MCP key; its owner's pacts role is applied.
pacticipantstringyesThe deployed pacticipant.
versionstringyesThe deployed version number, exactly as recorded.
environmentstringyesThe environment's name (as pact-broker record-deployment --environment).
applicationInstancestring or nullnoThe instance deployed to; omit for the only one.