---
title: Connect a context source
published: true
tier: free
index: 1
---

# Connect a context source

A context source lets a hosted agent use a connected repository or integration when answering questions. A Glue project owner or admin can add one.

1. In the project sidebar, open **Context → Add source**. Choose an active **Connection**. If you need to connect an account, choose **Open Integrations**, authorize it, then return to **Context**.
2. Choose what the agent may read. For GitHub, select a **Repository** and **Branch**, or enter a commit. A new GitHub source covers the repository at that revision. For another integration, enter a **Name** and list its read-only tool IDs under **Tools**, one per line.
3. Choose **Add source**. In **Settings → Channels**, open the settings for the agent you use. For **Site**, select **Connected sources** under **On-site agent → Settings → Tools**. For **MCP**, select it under **Ask agent → Answer sources**. Choose **Save changes** for that channel.

To change or revoke access, open the source’s menu in **Context** and choose **Settings** or **Remove source**. The agent can use the source only while its account connection is active.
