# Developers {#top}

cosentino.me has a small, honest API: everything on the site about Luca Cosentino (profile, essays, projects, beliefs) as JSON, over REST, MCP, NLWeb and A2A. It is public, read-only and free. **No sign-up and no API key**: there is nothing to register for, so you can make your first call right now.

## When to use it

Use it when an agent or app needs facts about Luca Cosentino and should cite them: who he is and where he works, what he has written (payments, stablecoins, fintech, books), what he has built, or what he believes. Do not use it for anything else; it knows nothing else.

## Quickstart

```bash
curl https://cosentino.me/api/v1/profile
curl "https://cosentino.me/api/v1/search?q=stablecoins"
claude mcp add --transport http cosentino https://cosentino.me/mcp
```

## REST API {#rest}

Base URL: `https://cosentino.me/api/v1`. OpenAPI 3.1: [/openapi.json](/openapi.json). Section index for agents: [/api/llms.txt](/api/llms.txt).

| Method | Path | What it returns |
|---|---|---|
| GET | `/profile` | Role, employer, teaching, career, education, topics, links |
| GET | `/essays?topic=&limit=&cursor=` | Essays, newest first (topics: business, life, books) |
| GET | `/essays/{id}` | One essay by id (its URL slug) |
| GET | `/projects` | Software projects with demo and source links |
| GET | `/beliefs` | The principles under "some things i believe" |
| GET | `/search?q=&limit=&cursor=` | Ranked full-text search over all of the above |

- **Auth:** none. Send no headers you do not need.
- **Sandbox:** every endpoint is a read-only GET, so production is also a safe sandbox. Nothing you call can change data.
- **Pagination:** list endpoints return `next_cursor` and `has_more`. Pass `cursor` back to get the next page.
- **Errors:** [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) `application/problem+json` with `code` (`not_found`, `invalid_parameter`, `method_not_allowed`, `rate_limited`) and a `hint` that says what to do next.
- **Rate limit:** 600 requests per minute per client. Every response carries `RateLimit` and `RateLimit-Policy` headers; over the limit you get `429` with `Retry-After`.
- **Versioning:** the major version is in the path. Breaking changes ship as `/v2`; `/v1` then sends `Deprecation` and `Sunset` headers for at least 90 days. New fields and endpoints can appear within v1.
- **CORS:** open (`*`), so browser apps can call it directly.

Example error:

```json
{"type":"https://cosentino.me/developers/#errors","title":"Not found","status":404,"code":"not_found","detail":"No essay with id 'nope'.","hint":"List ids with GET /api/v1/essays."}
```

## MCP server {#mcp}

Streamable HTTP at `https://cosentino.me/mcp` (stateless; protocol versions 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26). Server card: [/mcp/server-card](/mcp/server-card). No authentication.

| Tool | What it does |
|---|---|
| `get_profile` | Return Luca Cosentino's profile: current role and employer, teaching, career history, education, topics and profile links. Start here for any question about who he is or what he does. |
| `search_site` | Full-text search across his bio, essays, projects and beliefs. Use it for open questions ("what has he written about stablecoins?"). Returns ranked results with a URL to cite. |
| `list_essays` | List his essays from writing.cosentino.me, newest first, with title, date, topic, summary and URL. Filter by topic; page with cursor. Use get_essay for one essay by id. |
| `get_essay` | Return one essay by its id (the URL slug, e.g. "stablecoins-the-rail-above-rails"): title, date, topic, summary and URL. The full text lives at the URL. |
| `list_projects` | List the software projects he has built (AI evaluation harnesses, payments and compliance tools, developer tools) with a live demo or source link for each. |
| `get_beliefs` | Return the principles he lists under "some things i believe" (on decisions, management, learning, optimism), each with its supporting points. Use for questions about his views or operating style. |

Every tool is read-only (`readOnlyHint: true`), declares an `outputSchema` and returns `structuredContent`. Resources: the full profile (`https://cosentino.me/index.md`) and `https://cosentino.me/llms.txt`.

## NLWeb /ask {#ask}

`POST https://cosentino.me/ask` with `{"query":{"text":"what has Luca written about stablecoins?"}}`. Returns NLWeb 0.55 JSON: `_meta` plus schema.org `results`. Add `"prefer":{"streaming":true}` for server-sent events.

## A2A agent {#a2a}

JSON-RPC at `https://cosentino.me/a2a` (A2A 1.0 `SendMessage`; 0.3 `message/send` also works). Agent card: [/.well-known/agent-card.json](/.well-known/agent-card.json).

## In the browser (WebMCP) {#webmcp}

The home page registers the same read-only tools with `document.modelContext.registerTool()` for browser agents that support WebMCP.

## Discovery {#discovery}

- [/.well-known/ard.json](/.well-known/ard.json) and [/.well-known/ai-catalog.json](/.well-known/ai-catalog.json): one catalog of everything above
- [/.well-known/api-catalog](/.well-known/api-catalog): RFC 9727 API catalog
- [/.well-known/agent-skills/index.json](/.well-known/agent-skills/index.json): an agent skill
- [/llms.txt](/llms.txt), [/index.md](/index.md), [/sitemap.xml](/sitemap.xml), [/schemamap.xml](/schemamap.xml)

## Errors {#errors}

Every error has a `code` you can branch on and a `hint`. If something looks wrong, tell Luca through the [contact page](/contact/).
