Your GitAudience instance serves the Model Context Protocol (MCP) at <PUBLIC_URL>/mcp. Your own AI agent connects to it to enrich the stargazers of a project, or to read its audience. GitAudience runs no model itself: the agent runs on your computer, in Claude Code, Codex or Antigravity.
Every connection uses a token, and a token belongs to one project. You set up the agent of a project in Settings › MCP agent.
Tokens
A token lets one agent or tool use the MCP server of one project, and that project only. There are two kinds:
| Access | What it can do | Agent files needed |
|---|---|---|
| Agent | Enrich the stargazers of the project: take people, save what the sub-agents found, skip a person. | Yes: two sub-agent files, plus a skill file for Codex and Antigravity. |
| Read only | Search the audience of the project and read its dashboard counts. | No. Connecting the MCP server is enough. |
A token starts with ga_live_. It is shown once, when it is created: copy it then. GitAudience stores only a hash of it, and the token list shows its name, its first characters, its access and when it was last used.
Only an owner creates and revokes tokens. Every member can see the list. See Users for the two roles.
Create a token
In Settings › MCP agent:
- An Agent token is created at step 2, Create an agent token. Give it a name, such as the computer it runs on, and click Create agent token. Create another agent token creates a new one when you want to replace it.
- A Read only token is created from the Tokens card: click New read-only token, give it a name and click Create read-only token. The banner then offers Copy connection command and Copy read-only prompt.
The banner that shows a new token says “copy it now, it will not be shown again”. Copy token copies it.

Revoke a token
Click Revoke on its row, then confirm. Any agent using the token loses access immediately. People the agent had already taken stay locked until their lock expires, after 30 minutes.
Tokens are also revoked on their own:
- When the member who created them is removed, their tokens are revoked in every project.
- When an owner who created Agent tokens becomes a member, those tokens are revoked in every project.
The token list and Revoke keep working when a project is blocked by the free limit, so you can always cut off a token. Creating a token is refused while the project is blocked. See Licence.
Last used
Used on a token row is the time of its last request that the server accepted, at the minute. Never used means the agent has not reached the server yet. Settings › MCP agent uses this time to tick its steps.
The MCP server name
Each project has an MCP server name: the name your agent knows the server by. It is gitaudience-<slug> by default, for example gitaudience-orbit for a project whose slug is orbit.
The name is used in three places:
- the command or configuration block that registers the server in your agent;
- the names of the sub-agent files,
<name>-crawlerand<name>-decider, and of the skill for Codex and Antigravity; - the tool names the Claude Code sub-agents are allowed to call, such as
mcp__gitaudience-orbit__get_person.
Because the files are named after the project, the sub-agents of several projects can sit side by side in the same folder on your computer.
An owner changes the name in Settings › MCP agent, under Advanced, then clicks Save. The rules:
- 1 to 56 characters: letters, digits,
-and_, starting with a letter or a digit. - No
__(two underscores in a row). - Unique among the projects of the instance, ignoring case. A name another project uses is refused with “Another project already uses this MCP server name.”
Warning
After a rename, redo steps 3 and 4 of Settings › MCP agent: register the server again under its new name and install the sub-agent files again. Until your agent makes a request under the new name, the page shows Not connected yet. Instructions your agent obtained under the old name no longer let it take people.
The server always introduces itself as gitaudience to the client, whatever the project’s name.
Settings › MCP agent
The page has a status at the top, five numbered steps, the Tokens card and Advanced. While the agent is not fully set up, the page refreshes every 5 seconds, so each step is ticked as soon as GitAudience sees your agent do it.

The status
| Status | When it shows |
|---|---|
| Not connected yet | No Agent token of the project has made a request since the server name last changed. The text gives the number of steps left. |
| Your agent is connected, waiting for its first stargazer | An Agent token has made a request, and the sub-agents have not been checked yet. Start the enrichment (step 5): they are checked on the first stargazer. |
| Your agent is connected | The two sub-agents have called their MCP tools on the same person. The page shows when this was verified. |
| Your agent enriches in fallback mode | Your client does not give MCP tools to its sub-agents, so the main agent passes them what they need, and the enrichment still works. Installing the two sub-agents (step 4) keeps the two jobs apart. |
| The sub-agents cannot reach their tools | A sub-agent started without its MCP tools. Check the sub-agent files (step 4) and the MCP server name in Advanced, which opens on its own in this state. |
A Read only token never makes a project connected.
The five steps
- Choose your agent: Claude Code, Codex or Antigravity. An owner can switch, after a confirmation. Switching resets the crawler and decider models and effort of your configuration draft to the new client’s defaults; your facts, instructions, target profiles and parallelism stay. For Codex and Antigravity, a warning says that their sub-agents run without strict tool isolation.
- Create an agent token: see Create a token. A member reads “Only an owner can create an agent token.”
- Register the MCP server in your client: the command or configuration block, with the token you just created in it, or
<YOUR_TOKEN>otherwise. - Install the two sub-agents: Copy install command copies a shell command that writes the files to the right folders, and a Download button gives each file. Inspect install command shows the command before you run it. The files follow the published version of your agent instructions.
- Start the enrichment: the prompt to paste into your agent. Run it again when new stargazers arrive.
Each client has its own page with its commands and folders: Claude Code, Codex and Antigravity.
When the sub-agent settings of your configuration draft differ from the published version, a banner asks you to publish in Agent instructions to update the generated files.
What a token can do
The server lists only the tools of the token’s access. No tool takes a project as input: each one works on the project of its token. An ID from another project is answered as if it did not exist.
Agent tokens
| Tool | Called by | What it does |
|---|---|---|
get_instructions | Main agent | Gives the project, the state of the free limit, the configuration version, the sub-agent settings, the MCP server name and the instructions for running the enrichment. |
next_people | Main agent | Locks up to 10 people for 30 minutes. Each comes with a lock ID and two capabilities, one for each sub-agent. |
get_person | Crawler | Gives the public GitHub profile of one locked person, its links, the link to its profile README and its stars on competing repos. No email. |
save_dossier | Crawler | Saves the dossier of what the public pages say, page by page: at most 10 KB, 5 pages and 8 sources. |
get_dossier | Decider | Gives the saved dossier, without emails or image addresses, and the profile without its links. |
save_enrichment | Main agent | Saves the facts and target profile scores of one person, checked against the configuration of the lock. |
skip_person | Main agent | Records that a person has no public information, is not a person, or could not be reached. The person counts as processed. |
Read-only tokens
| Tool | What it does |
|---|---|
search_people | Searches and filters the audience of the project, 50 people per page at most. Suspects, people who left and people outside the audience are never returned. It never searches emails. |
get_audience_stats | Gives the dashboard counts of the project, and for each target profile how many people score high, medium, low or unknown, how many scores are to be recalculated and how many people have no score. |
A person returned by search_people carries their public profile, employer, facts about the person and target profile scores. It carries no email, no fact about their company, no labels, no notes and no dossier.
A tool of the other access answers “This token’s scope does not allow this tool.”
Two sub-agents, two capabilities
The main agent never reads the web. For each person it takes, it starts two sub-agents:
- the crawler (research agent) reads at most 5 public pages about the person and saves a dossier, page by page. It never opens LinkedIn or a search engine;
- the decider (evaluation agent) reads that dossier and returns the facts and target profile scores. It doesn’t read the web.
next_people gives each lock two random capabilities. The main agent passes the crawl capability to the crawler, which opens get_person and save_dossier for that lock only, and the decide capability to the decider, which opens get_dossier only. A capability used on another lock, or by the other sub-agent, is refused with “This sub-agent is not allowed to act on this lock.” GitAudience stores the capabilities as hashes and never writes them to its logs.
In Claude Code, each sub-agent file also lists the only tools the sub-agent may use: WebFetch, get_person and save_dossier for the crawler, get_dossier for the decider. Codex and Antigravity have no such list, and their sub-agents inherit the tools of the session. The server checks the same things for all three clients. See Privacy and data and Enrichment.
Emails never leave through MCP
The MCP server receives emails, since the crawler saves the public addresses it finds, each with the page it comes from, but it never returns one. Every response is checked against a closed schema with no email field, then every email address left in any text, such as a bio or a note, is replaced by a fixed marker. Addresses written in a disguised way, such as “lena at acme dot example”, are not recognised.
See Privacy and data.
When the agent stops
The main agent stops and tells you why when the server answers with one of these:
| Answer | What it means | What to do |
|---|---|---|
An empty list of people with limit_reached | The project has used its 500 free places and stargazers are still waiting. | Add the GitAudience badge to your README or become a sponsor. See Licence. |
project_limit_exceeded | The project has more than 500 processed stargazers without the limit being lifted. Every tool call is refused. | Add the badge, become a sponsor, or trim the excess enrichments in the console. |
no_published_config | The project has no published configuration yet. | Finish step 6 of adding the project. |
contract_changed | The sub-agent files come from an older version of GitAudience. | Download the new sub-agent files (step 4) and start again. |
tools_missing from the crawler | The crawler started without its MCP tools. | Check the MCP server name and install the sub-agent files again. |
A request without a token, or with an unknown or revoked token, gets HTTP 401.
Self-hosting
/mcpis served by theapicontainer, on the address ofPUBLIC_URL. Your reverse proxy must forward/mcpto it, like/api. See Installation.- The server is stateless: every request carries its token in an
Authorization: Bearerheader. There is no OAuth connection page. - A request body is limited to 100 kB. There is no rate limit per token: a stolen token works until you revoke it.
- MCP is off on the demonstration instance. Settings › MCP agent says “MCP is disabled on this demonstration instance.”