Skip to content

kifas.workflow.approve_diff

Approve or reject a pending diff in the workflow’s approval queue. On approve, a verified graph repair is applied to the workflow (a legacy reheal diff makes its compiled spec the active spec). On reject, nothing is applied and the workflow keeps running as it is. A repair whose workflow changed since it was verified answers reverifying: it is re-checked on a fresh run and lands on its own.

Required scopes: compile:approve

Name Type Required Default Description
diff_id string yes —
action "approve"` | `"reject" yes —
note string no —
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"approved",
"rejected",
"reverifying"
]
},
"diff_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"applied_compiled_spec_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"applied_workflow_version": {
"type": "string"
}
},
"required": [
"status",
"diff_id"
],
"additionalProperties": false
}
TypeScript (Anthropic MCP SDK)
import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamable-http.js'
const transport = new StreamableHTTPClientTransport(
new URL('https://mcp.kifas.io/'),
{
requestInit: {
headers: { Authorization: `Bearer ${process.env.KIFAS_API_KEY}` },
},
},
)
const client = new Client({ name: 'demo', version: '0.1.0' })
await client.connect(transport)
const result = await client.callTool({
name: 'kifas.workflow.approve_diff',
arguments: {
"diff_id": "00000000-0000-0000-0000-000000000000",
"action": ""
},
})
console.log(result)
Python (httpx, raw JSON-RPC)
import os
import httpx
resp = httpx.post(
"https://mcp.kifas.io/",
headers={
"Authorization": f"Bearer {os.environ['KIFAS_API_KEY']}",
"Content-Type": "application/json",
},
json={
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "kifas.workflow.approve_diff",
"arguments": {
"diff_id": "00000000-0000-0000-0000-000000000000",
"action": ""
},
},
},
)
print(resp.json())
curl
Terminal window
curl https://mcp.kifas.io/ \
-H "Authorization: Bearer $KIFAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "kifas.workflow.approve_diff",
"arguments": {
"diff_id": "00000000-0000-0000-0000-000000000000",
"action": ""
}
}
}'
Raw JSON-RPC body
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "kifas.workflow.approve_diff",
"arguments": {
"diff_id": "00000000-0000-0000-0000-000000000000",
"action": ""
}
}
}

Want to try kifas.workflow.approve_diff? Sign in to the dashboard and run it against a real session.

Try in Kifas →