> For the complete documentation index, see [llms.txt](https://docs.canhav.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.canhav.com/ai-and-ide/export-and-mcp.md).

# Markdown export and MCP

**In development.** Markdown export and the CanHav MCP server are not finished products yet. Do not describe them as live. Both are intended to be **free** and to require only a CanHav account once accounts ship. See [Accounts](/accounts/clerk-accounts.md).

## Markdown export (intended)

| Artifact           | Purpose                                                      |
| ------------------ | ------------------------------------------------------------ |
| `canhav-[slug].md` | Markdown export of the published Product or Token design     |
| `AGENTS.md`        | Agent-oriented summary of the design for IDE / coding agents |

Exact download UX will be documented when the export endpoints ship.

## MCP server (intended)

A CanHav MCP server will expose tools so an IDE agent can read your designs (and eventually help check them). Intended tools:

| Tool                     | Purpose                                                  |
| ------------------------ | -------------------------------------------------------- |
| `get_my_projects`        | List projects you own                                    |
| `get_my_tokens`          | List token designs you own                               |
| `get_project`            | Fetch one project by id or slug                          |
| `get_token`              | Fetch one token design by id or slug                     |
| `get_design_constraints` | Return limits and option sets the editors enforce        |
| `check_design`           | Run validation / warning checks against a design payload |

Until this lands in the repository, treat the tool list as the target surface, not a live API.

## Status discipline

Re-check this page before writing tutorials that assume export or MCP work today. Prefer future tense until status flips to Available now.

## Related

* [Accounts](/accounts/clerk-accounts.md)
* [The two ideation tracks](/getting-started/two-tracks.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.canhav.com/ai-and-ide/export-and-mcp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
