> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lusor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pi

> Add Lusor to the Pi coding agent as a remote MCP server.

[Pi](https://pi.dev) connects to remote MCP servers over streamable HTTP and handles sign-in itself.

**1. Add the server**

```bash theme={null}
pi mcp add lusor --url https://mcp.lusor.ai/mcp
```

This adds Lusor to your user-level `~/.pi/agent/mcp.json`.

**2. Sign in**

```bash theme={null}
pi mcp login lusor
```

Pi opens the Lusor sign-in. Sign in and choose your organization. Over SSH, paste the redirected URL into the terminal when Pi asks. Inside a session you can use `/mcp login lusor` instead.

**3. Check the connection**

```bash theme={null}
pi mcp list
```

Lusor shows as connected with its `search` and `execute` tools. Run `/reload` in an open session to pick it up.

## Use an API key instead

```bash theme={null}
export LUSOR_API_KEY="lusor_..."
pi mcp add lusor --url https://mcp.lusor.ai/mcp --bearer-token-env-var LUSOR_API_KEY
```

Pi then sends `Authorization: Bearer $LUSOR_API_KEY` and skips sign-in.

See [Connect an AI app](https://docs.lusor.ai/connect.md) for what Lusor allows over MCP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.