# MCP proxy (no sessions)

Source: https://immiscible.fly.dev/docs/api/delete-mcp-proxy-uid

`DELETE /mcp/proxy/:uid`

Answers `405`: proxy sessions are not deleted by the client.

## Authentication

Agent key. An agent-scoped key (`ask_...`) bound to exactly one agent, or an OAuth access token (`aat_...`) issued to an MCP client for that agent, sent as `Authorization: Bearer`. An agent key may ask, poll and settle. It can never approve, widen a mandate or lift a freeze.

## Path parameters

- `uid` (string, required): MCP upstream id

## Request

curl:

```bash
curl -X DELETE "https://immiscible.fly.dev/mcp/proxy/mcu_6c1d0e" \
  -H "authorization: Bearer $IMMISCIBLE_AGENT_KEY"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/mcp/proxy/mcu_6c1d0e', {
  method: 'DELETE',
  headers: {
    authorization: `Bearer ${process.env.IMMISCIBLE_AGENT_KEY}`,
  },
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import os
import requests

res = requests.delete(
    "https://immiscible.fly.dev/mcp/proxy/mcu_6c1d0e",
    headers={
        "authorization": f"Bearer {os.environ['IMMISCIBLE_AGENT_KEY']}",
    },
)
print(res.status_code, res.json())
```
