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

# Brain Studio

> Connect your Jelou Function as an external MCP server in Brain Studio so your AI agents can use it as a tool.

## Connect your function

<Steps>
  <Step title="Deploy your function">
    ```bash theme={null}
    jelou functions deploy
    # ✓ Deployed to https://my-function.fn.jelou.ai
    # ▸ Token    jfn_rt_abc123...
    ```

    Save the runtime token.
  </Step>

  <Step title="Verify MCP is active">
    ```bash theme={null}
    curl https://my-function.fn.jelou.ai/__health \
      -H "X-Jelou-Token: jfn_rt_abc123..."
    ```
  </Step>

  <Step title="Open Brain Studio">
    Navigate to: **AI Agent → Tools → External MCP Servers**
  </Step>

  <Step title="Configure">
    | Field        | Value                                 |
    | ------------ | ------------------------------------- |
    | URL          | `https://my-function.fn.jelou.ai/mcp` |
    | Header name  | `X-Jelou-Token`                       |
    | Header value | `jfn_rt_abc123...`                    |
  </Step>

  <Step title="Select tools and test">
    Brain Studio discovers tools automatically. Select the ones you want and test with a conversation.
  </Step>
</Steps>

<Tip>
  Clear, specific `description` fields in `define()` and `.describe()` annotations on input fields help the AI agent decide when and how to use your tool.
</Tip>
