Jian/ Docs

GitHub

Connect Jian's GitHub App so agents can read issues and pull requests, clone and push with github_git, and follow the pull requests they open.

GitHub is a native Jian integration, not an MCP card. Connecting it gives every agent GitHub's official MCP server, signed in as a GitHub App that you register and own, and github_git to clone, fetch, pull and push without an SSH key.

Try asking

In the harbor-web repository, read issue 214, make the fix on a branch, run the tests and open a pull request. Wait for my approval before you push.

Which pull requests in harbor-api have failing checks? Open the log of the first failure and tell me why it failed.

Clone harbor-docs, fix the broken links on the install page and push a branch called fix/install-links.

Connect

GitHub only registers an App for a gateway it can send you back to, so Jian offers GitHub on a gateway that has a public address. On a server, set JIAN_PUBLIC_URL. If GitHub is missing from the list, that address is the first thing to check. See self-hosting.

  1. Open Plugins, choose Connectors and open GitHub.
  2. Press Connect. The first time, Jian registers a GitHub App of your own for this gateway, and you confirm it on GitHub. The App is named Jian - followed by a random suffix.
  3. Choose the account or organization to install it on, and the repositories the App may reach. You can change that later on GitHub with the Access link beside the account.
  4. Back in Jian, the account appears under Accounts, marked as an organization or a personal account.

To add another account or organization, press Add account. Agents reach the repositories granted on every connected account.

An organization you do not own

If you are a member but not an owner of an organization, Connect sends the owners a request for the App. It is listed under Waiting for an owner to approve. Once an owner approves it, the account connects by itself on a server gateway. On a desktop app's own gateway, or if you do not want to wait, press Connect an approved installation.

What agents can do

Jian attaches GitHub's official MCP server to the conversation, with the App's authorization.

  • In a project bound to a GitHub repository, there is one server, github, limited to that repository.
  • Anywhere else, there is one server per connected account: github when there is one account, github_<login> when there are several. The agent picks the account that owns the repository.

Through the server an agent can search code, issues and pull requests; read files; create branches and commits; open, review and merge pull requests; manage issues, labels and comments; read workflow runs and job logs; read code scanning, Dependabot and secret scanning alerts; and work with releases, tags and discussions.

github_git covers the work that needs a real checkout: clone, fetch, pull and push, with the App's access, where the conversation works (the gateway's machine, or the machine it targets). Everything local stays with git in the shell: status, branch, commit, diff, merge, rebase.

  • Use it also when the remote is an SSH address. A plain git clone or git push needs an SSH key that GitHub accepts.
  • A pull fast-forwards. Pass rebase: true when the branches diverged.
  • A push needs a branch. A forced push uses a lease, and only when you asked for it.
  • A tag is pushed with tag instead of branch. A tag GitHub already has is never moved.

What the App can reach

When you register the App, it asks for write access to Actions, checks, contents, deployments, discussions, environments, issues, packages, Pages, pull requests, secret scanning alerts, security events, commit statuses, Dependabot alerts and workflows, and read access to metadata. Its webhook listens to pull request events.

Jian reads those permissions back from GitHub. If one was not granted, the connector page says which and links to Permissions on GitHub; grant it there, then approve the change for each account.

Pull requests the agent opens are watched

Every pull request an agent creates is watched by the gateway until it is merged or closed. When something changes, the agent gets a note in a turn of its own: a new review or comment, a failed check, checks passing again, a conflict with the base branch, or commits someone else pushed. It then fixes the problem, replies, or says in a line why nothing is needed. Its own comments and pushes are left out. When the pull request is merged or closed, the watch ends.

A pull request in a repository the App cannot read is not watched, and the conversation says why.

Pull requests screen and reviews

On a server gateway, Pull requests in the sidebar lists the open pull requests of every connected account, up to 50 per account, with reviewers, checks and whether it can merge. Filter by Open, Mine or Needs review, pick a repository, or search.

Review on a row hands the pull request to an agent. It opens a new chat named after the pull request and runs on Auto: the agent reads the changes, posts one review on GitHub with comments on the lines they concern, and sums up in the chat. Review settings sets the reviewing agent and its instructions, and Review new pull requests reviews each pull request that is opened, reopened or marked ready; Include drafts adds drafts, and you can limit it to some repositories. The desktop app's own gateway does not show this screen.

Good to know

  • Agents act as the App, not as you. What they write shows as the App's bot account.
  • Person-level data is out of reach. Your stars, your profile and your notifications belong to a person, and GitHub refuses an App's token there. It is GitHub's limit, not a setting.
  • Protection applies. Reads never ask. A push is an action on GitHub, and clone, fetch and pull change the machine. On Ask first they wait for your approval. See conversation protection.
  • Errors. A 404 on a repository usually means the App was not granted it. A 403 "Resource not accessible by integration" means the App lacks that permission or repository.
  • Disconnect with the button beside the account. That removes it from Jian; manage the installation itself with Access, on GitHub.

On this page