Check a pending MCP target
get_pending_targetCheck a pending MCP target that create_target left for your user to finish. Call it once when your user says they are done. Returns status 'awaiting_user', 'created' (with model_id), 'cancelled' or 'expired'. Requires the read scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pending_target_id": "<pending_target_id>"
},
"name": "get_pending_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pending_target_id | Yes | The pending_target_id create_target returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | 'awaiting_user' until your user finishes at finish_url; 'created' once the server is saved; 'cancelled' when it was cancelled in the Enoki app; 'expired' when finish_url stopped working first. | |
| message | Yes | What to do next. | |
| model_id | No | The saved server's id, when status=created. | |
| expires_at | No | When finish_url stops working (ISO 8601, UTC), when status=awaiting_user. | |
| finish_url | No | Where your user finishes connecting the server, when status=awaiting_user. |