Integrations
A hosted Felix reaches other systems in four ways: GitHub and Google, through the person’s own connection, with the Connections page where people link those accounts; remote MCP servers the operator lists; and the documents admins add. Each is off until its settings are there, and each is described in full on the page linked from its section.
Credentials the model never holds. No tool gives the model a token. A GitHub or Google call is made by the Worker with the conversation owner’s connection, and only in a run that acts as the owner: their own, or their schedule’s or trigger’s, never one an admin starts there. A hosted MCP server’s headers are filled from Worker secrets, and the sandbox’s requests to a checked-out repository get their token as they leave. Connection tokens are kept sealed, and no route returns one.
GitHub
Section titled “GitHub”GitHub works through each person’s own GitHub connection, so the agent reaches only what that
person can, and only on that person’s conversations. It needs GitHub sign-in (see
Sign-in and sessions) and the THREADS binding; /health then
reports github: true. A conversation the operator token created has no owner, and no GitHub.
| What | How |
|---|---|
| Reading | github_get: a read-only call to GitHub’s REST API (GET on api.github.com only) as the conversation’s owner, answered as data and cut at 20,000 characters. It runs in plan mode. |
| The repository list | Admins keep the repositories the agent may use, on the GitHub page or with PUT /v1/github/repositories: up to 200 owner/repo, each read or read & write. Only these repositories limits github_get to them and the person’s own account. See GitHub repositories. |
| Changing | With a repository listed read & write, runs get github_create_issue, github_comment, github_create_branch, github_put_file and github_create_pull_request. Each call waits for a person’s approval, covers that one call, and holds in bypass mode too. None writes to the default branch; changes reach it through a pull request someone merges. |
| A checkout | On a deployment with the sandbox, a listed repository can be cloned into the conversation’s sandbox at /repo. github_push commits and pushes it to a branch, under the same approval. |
Every change and every refused change is in the audit log (github_write, github_write_failed),
and so is each change to the list. Approval cards for a GitHub write name the repository and the
change.
Google works through each person’s own Google connection, on that person’s conversations only, in
their primary calendar, their mailbox and their Drive. Which tools a run gets follows the scopes the deployment
asks for in FELIX_GOOGLE_CONNECT_SCOPES; each call also checks what the person granted, and a
narrower grant says which access to reconnect with.
| Tool | What it does | Scope that allows it |
|---|---|---|
calendar_list_events |
Upcoming events, earliest first, up to 60 days ahead. | calendar.readonly, calendar.events.readonly, calendar.events or calendar |
calendar_find_free_time |
Free windows of at least a duration, up to 31 days. | any of those, calendar.freebusy or calendar.events.freebusy; with only calendar.events or calendar.events.readonly it reads the events, since Google’s free/busy lookup does not accept those |
calendar_create_event |
An event, such as a reminder, with an optional pop-up before it. | calendar.events or calendar |
gmail_search |
Matches for a Gmail search: date, sender, subject, snippet. | gmail.readonly, gmail.modify or https://mail.google.com/ |
gmail_read |
One message as text. | the same |
gmail_draft |
A plain-text draft for the person to send. | gmail.compose, gmail.modify or https://mail.google.com/ |
drive_search |
Files, shared ones included, by words in their name or text, or what a folder holds: name, kind, date modified, owner, link. | drive.readonly or drive |
drive_read |
One file as text, by id or link, in parts of 20,000 characters: a Doc as Markdown, the first sheet of a Sheet as CSV, the text of Slides, or a text file. With the Workers AI binding, also PDF, Word (.docx), Excel, OpenDocument and Numbers files up to 10 MB. Images, PowerPoint and old .doc files are named, not read. |
the same |
The scopes are under https://www.googleapis.com/auth/, except the full Gmail one. For example,
https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.compose https://www.googleapis.com/auth/drive.readonly
offers all eight. Enable the Google Calendar API, the Gmail API and the Google Drive API on the Google Cloud project that
owns the sign-in client, and add the scopes to its consent screen. Google classes drive.readonly and gmail.readonly as
restricted: a published app open to any Google account needs Google’s verification for them.
With the Workers AI binding, drive_read sends a PDF or Office file to Cloudflare’s
Markdown Conversion to
read it, under a plain name rather than the file’s own.
Adding a scope later does not reach connections already made. Each person presses Reconnect Google on the Connections page, which shows what is not granted yet; until then the tools that need it say so.
The reads run in plan mode and answer as data, cut at 20,000 characters. The two changes wait for
a person’s approval, cover that one call, hold in bypass mode too, and are offered only where
approvals can be recorded. An event has no guests and sends no invitation; a draft is never sent,
and there is no tool that sends mail. Repeating an event’s call finds the event already made
rather than adding another. Every change and every refused change is in the audit log
(google_write, google_write_failed).
A Cowork conversation’s greeting shows the person their own day from the same calendar
(GET /v1/me/agenda), with the scope calendar_list_events needs. Without a Google connection,
or with one that has no calendar access, it says so and links to the Connections page. A draft the
agent saves is drawn in the conversation as the email itself, with a link to Gmail’s Drafts.
Connections
Section titled “Connections”Signed-in people link their own accounts on the Connections page (Manage → Connections), so tools act as them. Connections reuse the sign-in apps, and are offered only where sign-in is on:
- GitHub, wherever GitHub sign-in is on, with the scopes in
FELIX_GITHUB_CONNECT_SCOPES(repo read:orgby default). This is the connection the GitHub tools use. - Google, only when
FELIX_GOOGLE_CONNECT_SCOPESnames the scopes to ask for. This is the connection the Google tools use.
A token close to expiry is refreshed before use; one the provider refuses shows Stopped working and the person connects again. Disconnecting also withdraws the grant at the provider. Setup, the callbacks to register and every refusal are in Connections; the routes are in the Management API.
MCP servers
Section titled “MCP servers”The FELIX_MCP_SERVERS secret lists remote MCP servers (HTTPS only), connected once for each run
request; their tools join the run as mcp__<server>__<tool>. Every call waits for a person’s
approval unless the server sets "approval": false, and a server’s headers can read other Worker
secrets as ${NAME}. A server can instead have each person sign in
to it on the Connections page. The other way round, /v1/mcp serves Felix itself to MCP clients. See
MCP.
Documents
Section titled “Documents”Documents are the deployment’s reference material (handbooks, specs, policies, notes) that the
agent searches and cites. With documents on, every run has search_documents:
- It takes
{ query, limit? }(a query of up to 500 characters; 1 to 10 results, 5 by default) and answers numbered excerpts of up to 1,500 characters, each with its file name, which the agent cites as[n]. Excerpts are marked as data, so instructions inside a document are not followed. - It only reads, so it runs in plan mode, and it can be turned off on the Agents page like any server tool.
Admins add and remove documents on the Documents page or through /v1/documents; anyone signed
in can list and search them. Uploads are at most 4 MiB, in Markdown, text, HTML, CSV, JSON, PDF or
DOCX, and the same name replaces a document. Uploads and removals are in the audit log.
Documents live in a Cloudflare AI Search instance,
which indexes each upload for keyword and semantic search. Bind an AI Search namespace to the API
Worker as AI_SEARCH; the shipped wrangler.jsonc does not declare it:
"ai_search_namespaces": [{ "binding": "AI_SEARCH", "namespace": "default" }]The instance is felix-documents unless FELIX_DOCUMENTS_INSTANCE names another (1 to 64
lowercase letters, digits, _ and -), and is created on first use. /health reports
documents: true where the binding and the API token are there. The routes and the page are in
Documents.
© Felix. All rights reserved.