Agent protocol

Read how an external agent connects to your workspace, follows the documentation method and submits changes for review.

Give your agent this address: https://fileaify.com/agent/github

The technical protocol below is maintained in English. This page displays the same source as the raw endpoint used by agents.

Connect a web agent

In your tool’s custom connectors, enter Fileaify and this URL:

https://fileaify.com/mcp

OAuth opens Fileaify to select your workspace, projects, permissions and duration. No secret key to copy. Connecting grants no secret access.

Claude: custom connector with automatic OAuth registration or published identity. ChatGPT: OAuth MCP connector, subject to the features available on your account.

Fileaify agent API — Github — Code on GitHub: repositories linked to the project

Part of the Fileaify agent protocol. Start page and index: /agent. Everything in one document: /agent/full.

Code on GitHub

When the owner connected a GitHub account to Fileaify, the project's code can live in GitHub repositories without you ever holding a long-lived key: Fileaify keeps the GitHub App key and hands you a token for ONE repository, for at most one hour. Repositories are chosen with the owner, project by project: one repository, or one per part (front, back, infrastructure). Agree on how many and their names in the conversation first, and record the choice in the project documentation.

GET /api/v1/projects/{project_id}/github (MCP read_repositories, project.read) returns connected (the member who approved your pairing connected a GitHub account), accounts, the repositories linked to the project with your current access (write, read or null) and when it ends, pending_requests and how to proceed. Not connected: tell the user to connect GitHub in Fileaify (Account, GitHub); you cannot do it for them.

Create a repository. POST /api/v1/projects/{project_id}/github/repository-requests (MCP request_repository) with {"name":"site","purpose":"What this repository holds","reason":"Why","private":true}. Names use letters, digits, ., _ and - (up to 100). It creates a request for your sponsor and nothing else. When the sponsor accepts, choosing a duration, Fileaify creates the repository in their GitHub account, links it to the project and gives you write access for that duration (409 repository_name_taken if the name exists: the request stays open, ask for another). Learn the decision with GET /api/v1/access-requests?wait=120. Only your sponsor, who owns the connection, can accept.

Access to a repository already linked. POST /api/v1/projects/{project_id}/access-requests with {"capability":"github.repo.write","binding_id":"<repo_id>","reason":"…"}; github.repo.read asks for reading only. binding_id is the repo_id returned by read_repositories (404 repository_not_linked otherwise). The human chooses the duration, as for any permission, and can revoke it at any time in Fileaify without visiting GitHub.

The owner may also give access first. From the project's Code tab the person responsible for you can create or link a repository and give you read or write on it for a duration they choose, without waiting for a request: read_repositories then shows your access. Ask only when it is null.

Repositories of another member. The person whose GitHub connection a repository uses can open it to members of the project (one, or all), for read or write and a duration they choose. Your sponsor, if the repository is opened to them, can then accept your request for access to it or give it to you themselves, at most up to their own level; tokens still come from the owner's connection and stay limited to that one repository. read_repositories marks such a repository usable: true. Without that opening, github_token returns 403 connection_owner_only. When the opening ends or your sponsor leaves, your next token request is refused.

Get a token. POST /api/v1/projects/{project_id}/github/repositories/{repo_id}/token (MCP github_token) with {"access":"write"} (or "read") returns token, expires_at (at most one hour), clone_url and the exact permissions: contents and pull requests on that repository only, never workflow files, other repositories or settings. Use it for git over HTTPS (git clone https://x-access-token:$TOKEN@github.com/owner/name.git), keep it out of files, logs, documents and conversation replies, and ask again when it expires. 403 permission_denied means no active grant (ask for it); 403 connection_owner_only means the repository belongs to another member's GitHub connection and was not opened to your sponsor. The response also carries commit_identity (name, email, trailer): GitHub shows the Fileaify App as the pusher, so set git user.name and user.email to it and end every commit message with the trailer line; the push can then be traced to you and to the person you act for. Push to a branch and open a pull request unless the owner told you otherwise.