# Get configuration snippets

Returns the quickstart steps, the MCP tool list and ready-to-paste configuration for Claude Desktop, Claude Code, Cursor, generic HTTP (MCP and REST), a local QVAC agent and the Python SDK. Credentials appear as placeholders. Requires developer:manage.

`GET /v1/developers/snippets`

Returns the quickstart steps, the MCP tool list and ready-to-paste configuration for Claude Desktop, Claude Code, Cursor, generic HTTP (MCP and REST), a local QVAC agent and the Python SDK. Credentials appear as placeholders. Requires developer:manage.

Requires permission `developer:manage`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `agent_id` | query | no | Agent id (agt_...) to tailor the snippets to; optional. |

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "agent": null,
  "base_url": "https://api.52-28-238-205.sslip.io",
  "mcp_url": "https://api.52-28-238-205.sslip.io/mcp",
  "steps": [
    {
      "step": 1,
      "title": "Create an agent and copy its credential",
      "detail": "Agents > New agent. The secret (agk_test_...) is shown once; store it in your secret manager."
    },
    {
      "step": 2,
      "title": "Sign a mandate",
      "detail": "Set limits, rails and networks, then sign with your passkey."
    }
  ],
  "snippets": [
    {
      "id": "claude_desktop",
      "title": "Claude Desktop",
      "language": "json",
      "filename": "claude_desktop_config.json",
      "code": "{\n  \"mcpServers\": {\n    \"gateway\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://api.52-28-238-205.sslip.io/mcp\",\n        \"--header\",\n        \"Authorization:Bearer ${GATEWAY_AGENT_KEY}\"\n      ],\n      \"en...(truncated)"
    },
    {
      "id": "claude_code",
      "title": "Claude Code",
      "language": "bash",
      "filename": null,
      "code": "claude mcp add --transport http gateway https://api.52-28-238-205.sslip.io/mcp --header \"Authorization: Bearer agk_test_...\""
    }
  ]
}
```
