pro
CLAUDE.md1 starsChanged 5 months agoApache-2.0View on GitHub
PRO (Portfolio Roadmap Organizer) is an MCP server that exposes Giant Swarm's GitHub Projects V2 boards to AI assistants. It manages two boards: - Roadmap Board (#273) — company quarterly goals, team/SIG/WG issues - Customer Board (#345) — customer activities from private repos No linters or formatters are configured. Tests use the Node.js built-in test runner (node --test). Pure JavaScript (ES modules), no TypeScript. Node 20+. bin/index.js parses --transport flag and starts either stdio (default, for local AI clients) or…
- Installs packages
In this repository2 other files it gives its agents.
- .cursor/rules/mcp-tools-usage.mdcCursor rule
- .cursor/rules/zz_generated.base-llm-rules.mdcCursor rule
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
No linters or formatters are configured.
- Distinctive: line 65
Generic field filtering: No hardcoded field names. LLMs read the board's schema resource to discover fields, then pass field name/value …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
PRO (Portfolio Roadmap Organizer) is an MCP server that exposes Giant Swarm's GitHub Projects V2 boards to AI assistants. It manages two boards:
- Roadmap Board (#273) — company quarterly goals, team/SIG/WG issues
- Customer Board (#345) — customer activities from private repos
Commands
# Install dependencies
npm install
# Run tests (Node.js built-in test runner)
npm test
# Run MCP server locally (stdio transport)
node bin/index.js
# Run with HTTP transport (port 8080)
node bin/index.js --transport=streamable-http
# Helm lint
helm lint helm/proNo linters or formatters are configured. Tests use the Node.js built-in test runner (node --test).
Architecture
Pure JavaScript (ES modules), no TypeScript. Node 20+.
Entry Point & Transport
bin/index.js parses --transport flag and starts either stdio (default, for local AI clients) or streamable HTTP (for K8s/Docker). HTTP transport (src/lib/mcp/http.js) serves /mcp, /healthz, /readyz on port 8080. When OAuth is configured, also serves /authorize, /token, /register, /github/callback, and /.well-known/*.
MCP Layer (src/lib/mcp/)
server.js— Creates MCP server, registers handlers forlist_tools,call_tool,list_resources,read_resourcetools.js— 10 tool definitions and handlers (list_issues, get_issue_details, update_issue_field, create_issue_in_project, add_existing_issue, archive_item, close_issue, reopen_issue, update_issue_labels, list_issue_comments), plus 6 more re-exported from sub-issues.js and 1 more re-exported from timeline.js (17 total)sub-issues.js— Sub-issue tools (list, add, remove, get_parent)timeline.js—get_issue_timelinetool: compact activity timeline (labels, assignments, milestones, renames, cross-references, close reasons) for an issue, resolved from a board itemresources.js— Per-board schema and overview resources (e.g.roadmap://schema)
Auth Layer (src/lib/auth/)
provider.js— GitHub OAuth provider implementing MCP SDK'sOAuthServerProviderinterface. Handles dynamic client registration, URL client_ids (Client ID Metadata Documents, SEP-991: any HTTPS CIMD URL is fetched, validated and cached; the URL policy inisCimdUrlblocks SSRF targets), GitHub OAuth redirect flow, local PKCE validation, and token verification via GitHub API. All of this state is in memory: a restart drops dynamically registered client_ids, in-flight authorization sessions and unexchanged codes (those logins must be started over); CIMD clients such as muster and Claude Code are unaffected because their client_id is re-resolved from the URL.http.jsbuilds the RFC 8414 metadata itself (createOAuthMetadata+client_id_metadata_document_supported: true) and mounts it before the SDK'smcpAuthRouter, because the SDK offers no option for the flag. Clients only take the CIMD path when it is advertised.
Domain Layer (src/lib/)
project.js— Board registry (board name → project ID mapping), all GraphQL queries and mutationsitems.js— Issue listing with server-side filtering, issue detail fetching, field updates, andresolveItemIssues— the single batched item→issue resolution helper (issue node ID, owner/repo/number, repo visibility) used by every tool that only needs the issue ref (close/reopen, labels, timeline, comments)fields.js— Field discovery and fuzzy matching (case-insensitive, emoji/special char normalization)api.js— Authenticated GraphQL client with cursor-based paginationrest-api.js— Octokit REST client for sub-issues and timeline endpoints (not available via GraphQL)comments.js— Bulk comment fetching: resolves board items to issues viaresolveItemIssues, then REST comment fetching withsince/cap boundslogger.js— Structured logging to stderr (avoids polluting MCP stdio)
Key Design Decisions
- Generic field filtering: No hardcoded field names. LLMs read the board's schema resource to discover fields, then pass field name/value pairs as filters.
- Board registry pattern:
resolveBoardId()maps board names ("roadmap", "customer") to GitHub project node IDs. - Dual transport: stdio for local clients, HTTP for remote deployment — same server code.
- Three auth modes:
GITHUB_API_TOKENenv var for stdio/local use; OAuth 2.1 via GitHub for HTTP transport (whenGITHUB_OAUTH_CLIENT_IDis set); bearer-only for HTTP transport (OAUTH_BEARER_ONLY=true: GitHub tokens obtained elsewhere are verified and used per request, no authorization server). Per-request tokens are threaded through the entire call chain.createGitHubTokenVerifier(provider.js) is the shared verifier: scoped tokens must coverrepo,project,read:org; GitHub App / fine-grained tokens carry no scopes header and are accepted, GitHub enforcing their permissions per call. - Public repo safety: Creating issues in
giantswarm/roadmap(public) requires explicitconfirmPublicSafe=true. Posting a comment viaclose_issue/reopen_issueon an issue in any public repository requires the sameconfirmPublicSafe=trueguard; the close/reopen state change itself is ungated.
Environment Variables
GITHUB_API_TOKEN(required for stdio, optional fallback for HTTP) — PAT withproject:writeandrepo:writescopesHTTP_PORT(optional, default 8080) — for HTTP transportGITHUB_OAUTH_CLIENT_ID(optional) — GitHub OAuth App client ID. Enables OAuth 2.1 on HTTP transport.GITHUB_OAUTH_CLIENT_SECRET(required when OAuth enabled) — GitHub OAuth App client secretOAUTH_BEARER_ONLY(optional) —trueruns the HTTP transport as a plain resource server: every/mcprequest must carry a GitHub token as bearer (verified via the GitHub API, then used for that request's GitHub calls); no/authorize,/tokenor/registerare served, and RFC 9728 protected resource metadata at/.well-known/oauth-protected-resource[/mcp]nameshttps://github.com/login/oauthas the authorization server. For clients that hold the person's GitHub grant themselves (muster's GitHub connector). Ignored when a GitHub OAuth App is configured.OAUTH_ISSUER_URL(optional) — Public URL of this server for OAuth metadata (defaults tohttp://localhost:{port})OAUTH_TRUSTED_CLIENT_IDS(optional) — Comma-separated CIMD URLs that bypass the outbound URL policy (e.g. a muster on a cluster-internal hostname) and may omitclient_idin their document. Public HTTPS CIMD URLs are accepted without an entry here.
CI/CD
- GitHub Actions: CI validates app loads + helm lint on PRs; auto-release creates semver tags on merge to main
- CircleCI: Builds Docker image → pushes to
gsoci.azurecr.io, publishes Helm chart togiantswarm-catalog(on version tags only)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

