How do I connect the DecisionPen GitHub connector?

Agents & MCP· Guide 8 of 14

How do I connect the DecisionPen GitHub connector?

Purpose and setup: install the DecisionPen GitHub App, map repos to entities, scan for architecture discovery, and receive merged-PR evidence — propose only, never auto-Confirm.

10 min read

Share this article

What the GitHub connector is for

Architecture knowledge already lives in repositories — ADRs, manifests, IaC, and the services those repos implement. Delivery also lands there when pull requests merge. The GitHub connector brings both into the Architecture Context Plane.

The GitHub connector is a DecisionPen-owned GitHub App. An administrator installs it on your GitHub organisation (or account), maps repositories to entities on the estate map, then can:

  • Scan repos for discovery — on demand, DecisionPen reads allowlisted architecture paths and technology manifests and queues proposals for Inbox review.
  • Receive merged-PR evidence — ongoing implementation signal when mapped repos change, again as proposals only.

Nothing joins the Confirmed map until a person accepts it. There is no edge agent and no Edge API token for this path. Auth is the GitHub App installation plus webhook signature verification — separate from Claude / Cursor MCP, which uses Edge tokens.

What you get after setup

Repo → entity mappings — you choose which repositories implement or document which applications, platforms, or other estate entities. Monorepos can use a path scope so only relevant folders count for scans and for merged-PR evidence.

Architecture discovery scan — for each confirmed link, Scan architecture reads allowlisted paths (ADRs, architecture docs, README, OpenAPI/compose/Dockerfiles, package and language manifests, Terraform and related IaC, GitHub workflows, and similar) and queues technology / architecture proposals. This is a bounded discovery pass over the repo as it stands today — not a full-repo crawl and not a substitute for broader enterprise discovery from HLDs and inventories.

Merged-PR evidence — when a PR merges on a mapped repo (and optional path scope), DecisionPen indexes it only if the change is architecturally significant (ADR/architecture language, or allowlisted architecture/tech paths in the diff). Routine marketing or unrelated code merges are skipped so the index stays lean.

Who can set this up

You need a DecisionPen Administrator, plus someone who can install GitHub Apps on the target organisation or account.

Step 1 — Open GitHub App in Admin

  1. Sign in to DecisionPen as an Administrator.
  2. Open Admin → Integrations.
  3. Open GitHub App.

If the panel shows the feature as disabled or not configured, the DecisionPen environment still needs App credentials and GITHUB_APP_ENABLED=true. Contact your DecisionPen operator before continuing.

Step 2 — Install the DecisionPen GitHub App

  1. Click Connect GitHub.
  2. GitHub opens the DecisionPen App install flow. Choose the organisation or account, and the repositories the App may access (all repos, or a selected set).
  3. Confirm the install. GitHub redirects back to DecisionPen and binds that installation to your organisation.
  4. You should see an active installation listed under Installations.

Step 3 — Load repositories

  1. Select the installation if you have more than one.
  2. Under Repositories, click Load from GitHub.
  3. Click a repository name to fill the mapping form, or type owner/name manually.

Step 4 — Map each repo to an entity

Scans and merged-PR evidence only attach to entities you explicitly link. Create one mapping per repo↔entity pair you care about.

  1. Confirm Repo (owner/name) is correct.
  2. Under Entity, search by name and pick the estate item. You do not need the UUID. Suggestions from the repo name appear when DecisionPen can guess a match.
  3. Optional — Path scope for monorepos (for example services/billing/**). Only paths under that scope count for architecture scans and for merged-PR evidence on this link.
  4. Choose how the repo relates:
    • Implements — source code for this entity (default for app and service repos).
    • Documents — docs or ADRs about the entity rather than implementing it.
  5. Click Save mapping. The link is saved as confirmed.

Repeat for each repository you want on the plane. You can later Reject or Revoke a link from the existing-links list.

Step 5 — Scan repos for discovery

After a link is confirmed, run a discovery scan to seed the plane from what the repository already contains.

  1. On a confirmed link, click Scan architecture.
  2. DecisionPen queues a bounded read of allowlisted paths (architecture docs, ADRs, key manifests, IaC, workflows, and similar), honouring path scope when set.
  3. When the scan finishes, open Inbox and review proposals — technology components, architecture signals, and related context. Nothing is auto-confirmed.

Re-run a scan when a repo’s architecture surface has changed and you want a fresh discovery pass. Re-scans replace the previous scan snapshot for that repo/ref (and path scope) — they do not stack duplicate index rows. Day-to-day change still arrives from merged PRs (next step).

Step 6 — Keep the plane current with merges

  1. Merge a pull request on a mapped repository (respecting path scope if you set one). Prefer a change that touches architecture docs or meaningful implementation paths when you want to verify the pipe.
  2. In DecisionPen, open Inbox (and entity context / evidence views as you normally review proposals).
  3. Accept what should join the Confirmed map; leave or reject the rest.

Disconnect or remove an installation

  1. In DecisionPen Admin → Integrations → GitHub App, select the installation and choose Mark removed. That clears the binding and revokes links in DecisionPen.
  2. Also uninstall the App from the GitHub organisation settings so webhooks stop.

What comes next

Connect agents with Cursor or Claude MCP, optionally an S3 document store, then continue the reading path with incremental modelling.

Frequently asked questions

Is the GitHub connector the same as DecisionPen MCP?
No. MCP connects Claude, Cursor, and other agents with an Edge API token. The GitHub connector is a GitHub App install for repo discovery scans and merged-PR evidence. Many teams use both.
Do I need an Edge API token for GitHub?
No. Webhooks authenticate with the App installation and Hub signature — not Edge tokens and not human SSO session cookies.
Can I discover architecture from a repo without waiting for a merge?
Yes. After you map a repo to an entity, use Scan architecture for a bounded discovery pass over allowlisted paths. Review proposals in Inbox.
Does every commit create evidence?
No. Ongoing webhook signal is a merged pull request, filtered by repo↔entity links and optional path scope, and only indexed when the change is architecturally significant. Discovery scans are on-demand and separate.
Will DecisionPen auto-update the Confirmed map from GitHub?
No. Scans and merged PRs propose only. Humans accept what becomes Confirmed.
Can I use GitHub Enterprise Server?
Not in v1. The connector targets github.com.
What permissions does the App request?
Read-only Contents, Pull requests, and Metadata.

Prefer plain text? Markdown mirror for agents and readers.

Share this article
See it live

No credit card needed.