Connect source
connect_sourceConnect a repository, a website or a single page as a SOURCE OF TRUTH for this documentation — what list_sources then lists and read_source reads, and what an agent armed with enable_agent watches. A GitHub repository is PROVED readable before anything is stored — publicly, or with a GitHub authorisation this project already holds — so this never leaves behind a source that quietly reads nothing. A private repository nobody has authorised yet comes back as REPO_UNREADABLE with the one thing that fixes it (the owner grants repository access once, in their panel); connect it anyway is not an option this tool offers. note is the owner's own words about why the source is connected and is read as instruction by everything that later reads it — say what it is for ('the API server the reference pages describe'), not what it is.
- Use it when the docs are about a product whose code or site this project cannot currently read: connecting the repository is what turns 'the docs claim X' into something checkable.
- REQUIRES a read-write MCP token.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "connect_source",
"arguments": {
"url": "<url>"
}
}
}{
"source": {},
"verified": {},
"authorization": "<authorization>",
"head_commit": {},
"hint": "<hint>"
}