# Sourcebot

{% hint style="warning" %}
**Early Access** — Reach out to your Natoma representative for access.
{% endhint %}

**Type:** Official

**Source Type:** Remote URL

**Source:** `https://{sourcebotBaseUrl}/api/mcp`

**Description:** Sourcebot MCP server provides AI assistants with access to your Sourcebot code-search instance. It enables semantic and keyword search across indexed repositories, file lookups, and reference navigation through OAuth.

***

## Setup

### Admin Setup

In Natoma, an admin adds **Sourcebot** under **Apps** and enters:

| Field              | Value                 |
| ------------------ | --------------------- |
| Sourcebot Hostname | sourcebot.example.com |

### Authorize Your Connection

When prompted while creating the connection in Natoma, click **Authorize** to complete OAuth.


---

# Agent Instructions: 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:

```
GET https://docs.natoma.ai/apps/sourcebot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
