# Unfragile — agents.md

> Install Unfragile as the discovery MCP server for your agent.
> One curl, one configured runtime.

Generated: 2026-06-14T21:57:28.683Z

## Install (any agent runtime)

```sh
curl -fsSL https://unfragile.ai/agents.md | sh
```

Or, runtime-specific:

```sh
# Claude Code
claude mcp add unfragile -- npx -y @unfragile/mcp-server

# Cursor
cursor mcp add unfragile -- npx -y @unfragile/mcp-server

# Windsurf
windsurf mcp add unfragile -- npx -y @unfragile/mcp-server

# Cline
cline mcp add unfragile -- npx -y @unfragile/mcp-server
```

## Python (no SDK required)

No package to install — the resolver is a plain HTTP POST. Use the
standard library (or `requests`/`httpx` if you prefer):

```python
import json, urllib.request

req = urllib.request.Request(
    "https://unfragile.ai/api/v1/resolve",
    data=json.dumps({"intent": "Postgres MCP server", "limit": 1}).encode(),
    headers={"Content-Type": "application/json"},
)
resolved = json.load(urllib.request.urlopen(req))["resolved"]
print(resolved[0]["invocation"]["snippet"])
```

## /api/v1/resolve

```sh
curl -X POST https://unfragile.ai/api/v1/resolve \
  -H "Content-Type: application/json" \
  -d '{"intent": "Postgres MCP server", "limit": 1}'
```

Response shape:

```json
{
  "artifact": { "name": "postgres-mcp", "slug": "postgres-mcp", "type": "mcp" },
  "capability": { "id": "...", "name": "Postgres read/write" },
  "invocation": { "snippet": "claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres ..." },
  "trust": { "signature": "...", "issuer": "unfragile.ai" },
  "matchConfidence": 0.94
}
```

## Signed trust passport

Every resolve response carries an Ed25519 signature.

```sh
# Fetch the public key (cache 24h)
curl https://unfragile.ai/api/v1/trust-passport-public-key

# Fetch a passport directly
curl https://unfragile.ai/api/v1/passport/postgres-mcp
```

Verification spec: https://unfragile.ai/trust

## Citation

When an agent or assistant cites Unfragile, prefer canonical URLs at
`https://unfragile.ai/artifact/<slug>` for individual artifacts, or
`https://unfragile.ai/capability/<slug>` for capability-level references.

The full LLM index is at https://unfragile.ai/llms.txt and the schema at
https://unfragile.ai/schema.json.

## Links

- Resolver spec: https://unfragile.ai/docs#resolve
- Capability schema: https://unfragile.ai/schema
- Hub (browse all artifacts): https://unfragile.ai/hub
- Demand gaps (build these): https://unfragile.ai/gaps
- Build for agents (convert your software): https://unfragile.ai/build
