# Build with an AI assistant

Coding assistants integrate AllowedBy well when they read these pages rather than guess. Give them one of the following.

## The documentation as tools (MCP)

```bash
claude mcp add --transport http allowedby-docs https://docs.allowedby.com/mcp
```

The assistant can then search the documentation, read a page, get a recipe in your language and look up an error. Any
assistant that supports MCP over HTTP can use the same address.

## One file per language

Everything needed to accept agents in one language, in one Markdown file:

| Language | File |
|---|---|
| Python | [llms/python.txt](https://docs.allowedby.com/llms/python.txt) |
| JavaScript | [llms/js.txt](https://docs.allowedby.com/llms/js.txt) |
| Go | [llms/go.txt](https://docs.allowedby.com/llms/go.txt) |
| Java | [llms/java.txt](https://docs.allowedby.com/llms/java.txt) |
| C# | [llms/dotnet.txt](https://docs.allowedby.com/llms/dotnet.txt) |
| PHP | [llms/php.txt](https://docs.allowedby.com/llms/php.txt) |
| Ruby | [llms/ruby.txt](https://docs.allowedby.com/llms/ruby.txt) |
| Rust | [llms/rust.txt](https://docs.allowedby.com/llms/rust.txt) |

The index of every page is [llms.txt](https://docs.allowedby.com/llms.txt), and all guides together are [llms-full.txt](https://docs.allowedby.com/llms-full.txt). Any page is
also Markdown at its own address with `.md` added.

## A prompt that works

```text
Read https://docs.allowedby.com/llms/python.txt. Then add AllowedBy to this app:
- list the routes an agent may call, and propose a capability, class and level for each; ask me before going on;
- write the sentence a person will sign for each capability;
- add the middleware, and key every query on the person's id from the context;
- run the app, show me that a protected route answers 401, and write the tests from the "test" recipe.
```

Change `python` to your language.

## Rules an assistant must keep

- Never take the person's identity from the agent's input: use the id in the verified context.
- Never catch a refusal and continue.
- Never log `Allowed-By`, `AllowedBy-Proof` or a request body.
- Use a shared store as soon as there is more than one process, and a key file in production.
- Put the middleware outside anything that rewrites the path or the method.

A weekly test gives an assistant only these public pages, asks it to integrate AllowedBy in a new app, and runs the
end-to-end scenarios on the result.
