ContextBridge
Enables AI assistants to inspect and interact with GitHub repositories through a controlled tool layer, including read operations and mutation workflows with approval and dry-run safeguards.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ContextBridge summarize recent commits in the octocat repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ContextBridge
ContextBridge is a security-first Model Context Protocol (MCP) gateway that lets AI assistants inspect, reason over, and safely interact with GitHub repositories through a controlled, auditable tool layer.
Instead of giving an LLM unrestricted access to GitHub credentials or letting it call arbitrary APIs directly, ContextBridge sits between the model and GitHub and exposes a deliberately scoped set of MCP tools. Every operation passes through explicit policy, telemetry, and safety controls.
The project combines:
GitHub repository intelligence
Model Context Protocol tooling
Gemini, OpenAI, and local-model support
MCP-native tool orchestration
Human-in-the-loop mutation approvals
Dry-run execution
Repository allowlisting
Signed approval records
SQLite telemetry and audit logging
Deterministic evaluation
A local React control plane
Persistent AI chat
Tool-call visualization
VS Code MCP integration
The result is an AI-to-GitHub infrastructure layer designed around least privilege, observability, explicit authorization, and controlled execution.
Table of Contents
Related MCP server: GitHub Flow MCP
Why ContextBridge Exists
LLMs are increasingly capable of understanding source code, planning software changes, and operating external tools. The harder problem is how to let a model access real developer systems without giving it excessive authority.
A naive architecture often looks like this:
flowchart LR
U[User] --> LLM[LLM]
LLM --> TOKEN[GitHub Token]
TOKEN --> GH[GitHub API]This creates several problems:
The model may be exposed too directly to credentials.
Tool permissions may be broader than the user's actual request.
Read and write capabilities can become difficult to separate.
There may be no durable audit trail.
A generated action can become an executed action without a human checkpoint.
Prompt injection inside repository content may influence the model.
There may be no consistent policy layer between reasoning and execution.
ContextBridge introduces a dedicated control boundary:
flowchart LR
U[User] --> LLM[LLM / AI Assistant]
LLM --> MCP[ContextBridge MCP Interface]
MCP --> POLICY[Policy + Risk Controls]
POLICY --> TOOLS[Scoped Tool Layer]
TOOLS --> GH[GitHub API]
MCP --> AUDIT[(Telemetry / Audit DB)]
POLICY --> APPROVAL[Human Approval Layer]The model can reason and request actions, but ContextBridge owns execution.
Core Design Principles
1. Least Privilege
The model sees only explicitly exposed tools.
Read-only operations are separated from mutation-capable operations, and write execution remains gated by additional policy.
2. Human Authorization for Mutations
Potentially destructive or state-changing actions do not automatically become live GitHub operations.
The system can convert them into pending actions that require explicit human approval.
3. AI Cannot Self-Approve
Approval and rejection are intentionally kept outside the MCP tool surface.
The model can request an action, but it cannot approve its own request.
4. Dry-Run by Default
The default runtime posture is intentionally conservative:
CONTEXTBRIDGE_DRY_RUN=true
GITHUB_WRITES_ENABLED=falseThis means mutation flows can be exercised without sending live GitHub write requests.
5. Auditability
Tool calls, results, durations, policy outcomes, chat sessions, and evaluation data can be persisted locally.
6. Provider Independence
The control plane is not tied to one LLM vendor.
ContextBridge supports provider abstraction for:
Gemini
OpenAI
Ollama / local models
The model provider changes, but the MCP and safety architecture remain the same.
7. Repository Content Is Untrusted Data
Repository files, issues, comments, and other GitHub text are treated as data, not instructions.
This matters for reducing prompt-injection risk.
High-Level Architecture
flowchart TB
USER[User]
subgraph CLIENTS[Client Layer]
DASH[React Dashboard]
VSCODE[VS Code MCP Client]
OTHER[Other MCP-Compatible Clients]
end
subgraph APP[ContextBridge Application]
API[FastAPI Control Plane]
CHAT[Integrated Chat Orchestrator]
MCP[MCP Server]
POLICY[Policy Engine]
RISK[Risk Classification]
APPROVAL[Approval Manager]
TELEMETRY[Telemetry + Audit]
EVAL[Evaluation Engine]
end
subgraph MODELS[Model Providers]
GEMINI[Google Gemini]
OPENAI[OpenAI]
OLLAMA[Ollama / Local Model]
end
subgraph DATA[Local State]
SQLITE[(SQLite)]
ENV[Environment Secrets]
end
GH[GitHub API]
USER --> DASH
USER --> VSCODE
USER --> OTHER
DASH --> API
API --> CHAT
CHAT --> GEMINI
CHAT --> OPENAI
CHAT --> OLLAMA
GEMINI --> CHAT
OPENAI --> CHAT
OLLAMA --> CHAT
CHAT --> MCP
VSCODE --> MCP
OTHER --> MCP
MCP --> POLICY
POLICY --> RISK
POLICY --> APPROVAL
POLICY --> GH
MCP --> TELEMETRY
CHAT --> TELEMETRY
EVAL --> TELEMETRY
TELEMETRY --> SQLITE
APPROVAL --> SQLITE
CHAT --> SQLITE
ENV --> APPEnd-to-End Request Flow
A typical read-only request such as:
"Inspect this repository and explain its architecture."
follows this path:
sequenceDiagram
participant U as User
participant UI as Dashboard / MCP Client
participant M as LLM
participant C as ContextBridge
participant MCP as MCP Tool Layer
participant GH as GitHub
participant DB as SQLite
U->>UI: Ask repository question
UI->>M: Send prompt + available tools
M->>UI: Request get_repository(...)
UI->>C: Tool request
C->>MCP: Validate tool + arguments
MCP->>GH: GitHub API read
GH-->>MCP: Repository metadata
MCP->>DB: Log tool call
MCP-->>UI: Tool result
UI->>M: Return tool result
M->>UI: Request get_file_contents(...)
UI->>C: Tool request
C->>GH: Fetch README/source
GH-->>C: File contents
C->>DB: Log call
C-->>UI: Tool result
UI->>M: Return result
M-->>U: Final grounded answerThe key point is that the model does not directly call GitHub. It requests a named ContextBridge tool, and ContextBridge performs the operation.
Integrated AI Chat
ContextBridge includes a local chat interface inside the dashboard.
The chat system combines:
persistent conversations
configurable LLM provider
dynamic MCP tool discovery
model-selected tool calls
read-only mode
tool execution timeline
local chat persistence
credential isolation
MCP-based repository access
Chat Architecture
flowchart LR
USER[User] --> REACT[React Chat UI]
REACT --> API[FastAPI]
API --> CHAT[Chat Orchestrator]
CHAT --> MODEL[Gemini / OpenAI / Ollama]
MODEL -->|Function Call| CHAT
CHAT --> MCP[MCP Client]
MCP --> SERVER[ContextBridge MCP Server]
SERVER --> GH[GitHub]
GH --> SERVER
SERVER --> MCP
MCP --> CHAT
CHAT -->|Function Result| MODEL
MODEL -->|Final Answer| CHAT
CHAT --> REACT
CHAT --> DB[(SQLite)]Why Tool Execution Is Manual
LLM SDKs can often execute Python functions automatically. ContextBridge deliberately avoids delegating tool execution directly to the SDK.
The model may choose:
get_repositorywith arguments such as:
{
"owner": "example-user",
"repo": "example-repo"
}But ContextBridge itself executes the tool.
This ensures that every tool call still passes through:
MCP
read-only restrictions
risk classification
telemetry
mutation policy
approval requirements
dry-run controls
The model provider therefore remains a reasoning layer, not the authority layer.
MCP Server
ContextBridge exposes its capabilities through the Model Context Protocol.
The MCP server acts as the standardized interface between AI clients and controlled developer tooling.
flowchart LR
CLIENT[MCP Client]
SERVER[ContextBridge MCP Server]
TOOLREG[Tool Registry]
POLICY[Policy Layer]
BACKEND[GitHub + Local Services]
CLIENT --> SERVER
SERVER --> TOOLREG
TOOLREG --> POLICY
POLICY --> BACKENDThis enables ContextBridge to work with more than its own dashboard.
An MCP-compatible client can discover available tools dynamically and invoke them using the standard protocol.
GitHub Tooling
ContextBridge's GitHub integration is divided into two broad categories:
flowchart TB
GH[GitHub Tools]
GH --> READ[Read Tools]
GH --> MUT[Mutation Requests]
READ --> R1[Repository Metadata]
READ --> R2[Files]
READ --> R3[Issues]
READ --> R4[Pull Requests]
READ --> R5[Commits]
READ --> R6[Code Search]
READ --> R7[Workflow Runs]
READ --> R8[Commit Status]
MUT --> M1[Create Issue]
MUT --> M2[Add Comment]
MUT --> M3[Add Labels]
MUT --> M4[Close Issue]
MUT --> M5[Reopen Issue]Read Operations
Read tools are intended for repository inspection, code understanding, debugging, research, and developer assistance.
Examples include:
listing repositories
reading repository metadata
reading files
searching code
searching issues
reading issue details
listing pull requests
reading pull requests
listing commits
checking CI/workflow runs
checking commit status
These tools are suitable for tasks such as:
"Explain what this repository does."
"Find where authentication is implemented."
"Summarize open issues related to deployment."
"Inspect the README and source tree and explain the architecture."
"Find which workflow is failing."
Mutation Safety Architecture
Mutation-capable tools are handled differently from read tools.
A requested mutation is not automatically equivalent to a live GitHub API write.
flowchart TD
MODEL[Model Requests Mutation]
VALIDATE[Validate Tool + Arguments]
RISK[Classify Risk]
POLICY{Policy Allows Request?}
PENDING[Create Signed Pending Action]
HUMAN{Human Decision}
REJECT[Reject]
APPROVE[Approve]
CLAIM[One-Time Execution Claim]
DRY{Dry Run?}
SIM[Simulate Execution]
WRITE{GitHub Writes Enabled?}
ALLOW{Repository Allowlisted?}
GH[Send GitHub Mutation]
AUDIT[Persist Audit Result]
MODEL --> VALIDATE
VALIDATE --> RISK
RISK --> POLICY
POLICY -->|No| AUDIT
POLICY -->|Confirmation Required| PENDING
PENDING --> HUMAN
HUMAN -->|Reject| REJECT
HUMAN -->|Approve| APPROVE
REJECT --> AUDIT
APPROVE --> CLAIM
CLAIM --> DRY
DRY -->|Yes| SIM
SIM --> AUDIT
DRY -->|No| WRITE
WRITE -->|No| AUDIT
WRITE -->|Yes| ALLOW
ALLOW -->|No| AUDIT
ALLOW -->|Yes| GH
GH --> AUDITThis structure allows mutation workflows to be tested end-to-end without granting the model unrestricted write capability.
Human Approval Flow
Pending actions are persisted locally.
A pending action contains information such as:
action ID
requested tool
arguments
risk level
creation time
expiry
decision state
integrity signature
The approval path is intentionally separate from MCP:
flowchart LR
AI[AI / MCP] --> REQUEST[Mutation Request]
REQUEST --> PENDING[(Pending Action)]
PENDING --> LOCAL[Local Dashboard / CLI]
LOCAL --> HUMAN[Human]
HUMAN -->|Approve| SIGNED[Signed Approval]
HUMAN -->|Reject| DENIED[Rejected]
SIGNED --> EXEC[Controlled Execution]The AI does not receive an MCP tool such as:
approve_pending_actionThat omission is intentional.
It prevents a model from generating an action and then immediately granting itself permission to execute it.
Security Model
ContextBridge's security model is layered rather than dependent on one switch.
Layer 1: Secret Isolation
Secrets remain in local environment configuration.
Examples:
GITHUB_TOKEN=...
GEMINI_API_KEY=...
OPENAI_API_KEY=...The browser does not need access to these values.
The dashboard receives only non-secret provider state such as:
{
"provider": "gemini",
"model": "gemini-3.6-flash",
"configured": true
}Layer 2: Tool Surface Restriction
The model can only call registered MCP tools.
It does not receive a generic unrestricted shell or arbitrary GitHub HTTP tool.
Layer 3: Read-Only Mode
Integrated chat can expose only read-classified tools.
flowchart LR
MODEL[Model]
FILTER{Read-Only Enabled?}
READ[Expose Read Tools]
ALL[Expose Allowed Tool Set]
MODEL --> FILTER
FILTER -->|Yes| READ
FILTER -->|No| ALLLayer 4: Risk Classification
Tools are assigned risk semantics so that policy can distinguish reads from mutations.
Layer 5: Confirmation
Sensitive operations can require human confirmation.
Layer 6: Signed Actions
Pending actions and approvals are integrity-protected.
Layer 7: One-Time Execution
An approved action must be claimed for execution so the same approval cannot be freely replayed.
Layer 8: Dry Run
Even an approved action can remain simulated.
Layer 9: Write Disable Switch
GITHUB_WRITES_ENABLED=falseprovides a separate global write gate.
Layer 10: Repository Allowlisting
If live mutations are ever enabled, they can be constrained to explicitly authorized repositories.
Telemetry and Audit Logging
ContextBridge records operational information in SQLite.
The telemetry system provides visibility into:
which tool was called
when it was called
arguments
result status
duration
error state
risk classification
policy outcome
chat session association
evaluation results
flowchart LR
MCP[MCP Tool Call] --> REC[Telemetry Recorder]
CHAT[Chat Tool Call] --> REC
POLICY[Policy Decision] --> REC
EVAL[Evaluation Run] --> REC
REC --> DB[(SQLite)]
DB --> DASH[Dashboard]
DB --> AUDIT[Audit Queries]
DB --> METRICS[Metrics]Sensitive fields are redacted where appropriate before persistence or display.
Evaluation Framework
ContextBridge includes a deterministic evaluation layer for validating tool routing behavior.
The evaluation framework can measure:
tool-selection accuracy
argument/parameter accuracy
risk classification accuracy
mutation classification accuracy
Conceptually:
flowchart LR
CASES[Evaluation Cases]
ROUTER[Tool Selection Logic]
RESULT[Predicted Tool + Params]
EXPECTED[Expected Result]
SCORE[Scoring Engine]
DB[(SQLite)]
CASES --> ROUTER
ROUTER --> RESULT
RESULT --> SCORE
EXPECTED --> SCORE
SCORE --> DBThe purpose is to make tool behavior measurable instead of relying only on ad-hoc manual testing.
Dashboard Control Plane
ContextBridge includes a local React/FastAPI dashboard.
Default address:
http://127.0.0.1:8765The dashboard provides a control plane for:
operational overview
integrated AI chat
pending approvals
audit history
evaluations
tool catalog
security posture
flowchart TB
REACT[React UI]
FASTAPI[FastAPI Backend]
REACT --> FASTAPI
FASTAPI --> CHAT[Chat Service]
FASTAPI --> DB[(SQLite)]
FASTAPI --> POLICY[Policy State]
FASTAPI --> TOOLS[MCP Tool Catalog]
FASTAPI --> EVAL[Evaluation Results]The dashboard is designed primarily as a local control plane, not as a public web application.
VS Code MCP Integration
ContextBridge can also run as an MCP server directly inside VS Code.
Example .vscode/mcp.json configuration:
{
"servers": {
"contextbridge": {
"type": "stdio",
"command": "${workspaceFolder}/.venv/Scripts/python.exe",
"args": ["-m", "contextbridge.server"],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/.env"
}
}
}The flow becomes:
flowchart LR
DEV[Developer]
VSCODE[VS Code AI / Agent]
MCP[ContextBridge MCP Server]
GH[GitHub]
DEV --> VSCODE
VSCODE --> MCP
MCP --> GH
GH --> MCP
MCP --> VSCODEProject Structure
A typical repository layout is:
ContextBridge/
│
├── src/
│ └── contextbridge/
│ ├── server.py
│ ├── config.py
│ ├── chat.py
│ ├── dashboard.py
│ ├── dashboard_static/
│ ├── github/
│ ├── security/
│ ├── telemetry/
│ ├── evaluation/
│ └── tools/
│
├── dashboard/
├── docs/
├── evals/
├── scripts/
├── tests/
├── .env.example
├── .gitignore
├── pyproject.toml
├── README.md
├── SECURITY.md
└── CHANGELOG.mdInstallation
Requirements
Recommended environment:
Python 3.12+
Git
Windows PowerShell for the included Windows scripts
GitHub account/token
Optional Gemini, OpenAI, or Ollama configuration
Clone the repository:
git clone https://github.com/Vatsal212005/ContextBridge.git
cd ContextBridgeFor a fresh Windows setup:
powershell -ExecutionPolicy Bypass -File .\scripts\setup_windows.ps1Running ContextBridge
Start the Dashboard
powershell -ExecutionPolicy Bypass -File .\scripts\start_dashboard.ps1Then open:
http://127.0.0.1:8765Start the MCP Server Directly
.\.venv\Scripts\python.exe -m contextbridge.serverThe server uses MCP over stdio for compatible clients.
Using the Chat Interface
Open the dashboard and select Chat.
A useful first prompt is:
Inspect
Vatsal212005/FeatureForge. Read the repository metadata, README, and relevant source files. Explain what the project does, its architecture, major components, and how they interact. Do not modify anything.
With read-only mode enabled, the model can inspect GitHub data but cannot request mutation tools through the chat surface.
Available MCP Tools
System
server_infohealthgithub_connection_status
GitHub Read Tools
list_repositoriesget_repositoryget_file_contentssearch_codesearch_issuesget_issuelist_pull_requestsget_pull_requestlist_commitsget_workflow_runsget_commit_status
Telemetry and Evaluation
get_tool_metricsget_recent_tool_callsget_audit_summaryget_evaluation_summary
Policy and Pending Actions
get_write_policylist_pending_actionsget_pending_actionexecute_approved_action
Mutation Request Tools
create_issueadd_issue_commentadd_labelsclose_issuereopen_issue
These tools do not imply unrestricted live execution. Their behavior is governed by the mutation safety architecture.
Safety Defaults
ContextBridge is intentionally conservative by default.
CONTEXTBRIDGE_DRY_RUN=true
GITHUB_WRITES_ENABLED=false
CONTEXTBRIDGE_CHAT_READ_ONLY_DEFAULT=trueUnder this posture:
GitHub reads can operate normally.
The chat interface defaults to read-only.
Mutation flows can be represented and audited.
Live GitHub write execution remains disabled.
Threat Model
ContextBridge is designed around several practical AI-tooling threats.
Prompt Injection in Repository Content
Repository text can contain hostile or misleading instructions. ContextBridge treats that content as untrusted data and keeps execution behind a separate policy boundary.
Model Hallucination
For GitHub-dependent claims, the system is designed to retrieve current repository state through tools instead of relying only on model memory.
Credential Leakage
Credentials remain server-side in environment configuration and are not intentionally returned through dashboard APIs.
Unauthorized Mutations
Mutation flows can require confirmation and remain globally disabled by default.
Self-Approval
The model is not given approval tools.
Replay of Approved Actions
Approved execution is tracked as a controlled, one-time claim rather than a reusable permission.
Scope Expansion
Future live-write deployments can combine repository allowlisting with separately scoped GitHub credentials.
Example Workflows
Repository Understanding
flowchart LR
Q[User asks what repo does]
META[get_repository]
README[get_file_contents README]
CODE[search_code / source reads]
ANSWER[Architecture explanation]
Q --> META
META --> README
README --> CODE
CODE --> ANSWERCI Investigation
flowchart LR
Q[User asks why build failed]
RUNS[get_workflow_runs]
COMMIT[get_commit_status]
CODE[get_file_contents]
ANALYZE[Model analysis]
RESULT[Suggested fix]
Q --> RUNS
RUNS --> COMMIT
COMMIT --> CODE
CODE --> ANALYZE
ANALYZE --> RESULTSafe Mutation Request
flowchart TD
U[User requests GitHub change]
M[Model selects mutation tool]
C[ContextBridge receives request]
P[Policy evaluation]
A[Pending action]
H[Human review]
D{Approved?}
SIM[Dry-run / controlled execution]
BLOCK[Rejected / blocked]
U --> M
M --> C
C --> P
P --> A
A --> H
H --> D
D -->|Yes| SIM
D -->|No| BLOCKTesting
Run the full Python test suite with:
.\.venv\Scripts\python.exe -m pytestThe project also includes targeted verification for:
MCP connectivity
dashboard APIs
integrated chat persistence
provider configuration
safety posture
evaluation behavior
Design Decisions
Why MCP?
MCP creates a standardized boundary between AI clients and developer tools. ContextBridge can therefore expose the same controlled capabilities to multiple MCP-compatible clients.
Why SQLite?
SQLite is appropriate for a local-first control plane because it provides transactional structured persistence without requiring a separate database service.
Why Local Approval?
Keeping approval outside the model-facing tool surface prevents a model from turning its own mutation request into authorization.
Why Multiple LLM Providers?
The model should be replaceable without redesigning the security architecture. Authority belongs to ContextBridge, not to the provider.
Why Explicit Tool Calls?
Explicit tool calls are easier to inspect, audit, classify, test, and govern than an opaque agent with unrestricted network access.
Limitations
ContextBridge is intentionally conservative.
Current tradeoffs include:
The dashboard is primarily intended for local use.
Live mutation execution should only be enabled with carefully scoped credentials and repository restrictions.
Model output quality depends on the selected provider.
Prompt injection is mitigated through defense in depth rather than assumed to be fully solved.
Large repositories may require iterative tool calls instead of loading the entire codebase at once.
Roadmap
Potential future directions include:
stronger repository-scoped authorization policies
richer approval policies by risk level
additional GitHub mutation types
finer-grained credential separation
more MCP clients
improved prompt-injection defenses
richer code-graph analysis
semantic repository indexing
local embeddings
repository dependency visualization
tool-call replay and debugging
policy simulation
RBAC for shared deployments
containerized deployment profiles
richer evaluation suites
model/provider benchmarking
streaming model output
organization-level GitHub policy support
Security Notes
Do not commit:
.env
GitHub tokens
Gemini API keys
OpenAI API keys
SQLite runtime databases
signing keys
private certificates
local chat historyUse .env.example for configuration documentation.
If a credential is accidentally committed, deleting it in a later commit is not enough because it may remain in Git history. Revoke and rotate the credential immediately.
Summary
ContextBridge separates AI reasoning from system authority.
The model can decide that it wants to inspect a file or request an action, but the infrastructure decides whether that operation exists, whether it is allowed, whether it requires confirmation, and whether it can actually execute.
flowchart LR
REASON[AI Reasoning]
REQUEST[Structured Tool Request]
CONTROL[ContextBridge Control Boundary]
AUTH[Authorization + Policy]
EXEC[Execution]
AUDIT[Audit]
REASON --> REQUEST
REQUEST --> CONTROL
CONTROL --> AUTH
AUTH --> EXEC
CONTROL --> AUDIT
EXEC --> AUDITThat separation is the central idea behind ContextBridge:
Give AI useful access to developer systems without giving it unrestricted control over them.
Available Tools
27 toolsadd_issue_commentA
Request an issue comment; queues exact action for human approval.
Inputs: body (required), repo (required), owner (required), issue_number (required). Returns: object
add_labelsA
Request existing labels be added to an issue; queues exact action for human approval.
Inputs: repo (required), owner (required), labels (required), issue_number (required). Returns: object
close_issueA
Request closure of an issue; destructive action always requires human approval.
Inputs: repo (required), owner (required), issue_number (required). Returns: object
create_issueA
Request creation of a GitHub issue; queues exact action for human approval.
Inputs: repo (required), owner (required), title (required), body. Returns: object
execute_approved_actionC
Execute exactly one human-approved action; DRY_RUN simulates without contacting GitHub.
Inputs: action_id (required). Returns: object
get_audit_summaryB
Summarize the immutable local audit stream and return its most recent events.
Inputs: hours, all_time, recent_limit. Returns: object
get_commit_statusA
Get combined legacy commit-status contexts for a SHA, branch, or tag. Requires Commit statuses: read.
Inputs: ref (required), repo (required), owner (required). Returns: object
get_evaluation_summaryA
Return the latest or specified local tool-selection evaluation summary. Read-only.
Inputs: run_id. Returns: object
get_file_contentsB
Read a UTF-8 text file or list a directory in an accessible GitHub repository. Read-only.
Inputs: path (required), repo (required), owner (required), ref, +1 more. Returns: object
get_issueB
Get one GitHub issue by repository and number. Read-only.
Inputs: repo (required), owner (required), issue_number (required). Returns: object
get_pending_actionA
Inspect one pending/decided action by ID without changing its state.
Inputs: action_id (required). Returns: object
get_pull_requestA
Get detailed metadata for one GitHub pull request. Read-only.
Inputs: repo (required), owner (required), pull_number (required). Returns: object
get_recent_tool_callsB
Return recent local MCP tool executions with redacted arguments and timing/error metadata.
Inputs: limit, status, tool_name. Returns: object
get_repositoryA
Get metadata for one GitHub repository. Read-only.
Inputs: repo (required), owner (required). Returns: object
get_tool_metricsB
Return tool-call success, failure, latency, and per-tool metrics from local telemetry.
Inputs: hours, all_time. Returns: object
get_workflow_runsB
List GitHub Actions workflow runs for a repository. Requires Actions: read. Read-only.
Inputs: repo (required), owner (required), actor, event, +3 more. Returns: object
get_write_policyA
Inspect mutation gates and human-confirmation requirements without changing anything.
Inputs: no named parameters. Returns: object
github_connection_statusA
Check GitHub authentication and return the connected account plus rate-limit state.
Inputs: no named parameters. Returns: object
healthA
Return a lightweight health check for the ContextBridge process.
Inputs: no named parameters. Returns: object
list_commitsA
List commits in a repository, optionally filtered by branch, path, author, or time. Read-only.
Inputs: repo (required), owner (required), path, since, +4 more. Returns: object
list_pending_actionsA
List human-confirmation actions. This tool cannot approve or reject them.
Inputs: limit, status. Returns: object
list_pull_requestsB
List pull requests for a GitHub repository. Read-only.
Inputs: repo (required), owner (required), base, head, +4 more. Returns: object
list_repositoriesB
List repositories accessible to the authenticated GitHub token. Read-only.
Inputs: sort, direction, visibility, max_results. Returns: object
reopen_issueA
Request reopening of an issue; queues exact action for human approval.
Inputs: repo (required), owner (required), issue_number (required). Returns: object
search_codeA
Search code visible to the authenticated GitHub token. Read-only; subject to GitHub code-search limits.
Inputs: query (required), path, repo, owner, +3 more. Returns: object
search_issuesA
Search GitHub issues across accessible repositories using safe structured filters. Read-only.
Inputs: repo, owner, query, state, +4 more. Returns: object
server_infoA
Return identity and runtime information for this ContextBridge server.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Tools separate cleanly into read-only GitHub queries, mutation requests, approval actions, and telemetry. A few telemetry tools (get_audit_summary vs get_evaluation_summary) could be confused, but descriptions clarify their distinct sources. No two tools appear to do the same operation.
Most tools follow verb_noun snake_case (list_repositories, create_issue, get_workflow_runs). Two exceptions: server_info and health lack verbs, and github_connection_status is a noun phrase. Consistency is strong overall but not perfect.
27 tools is above the comfortable range. The count is inflated by four telemetry tools that could arguably be combined. However, the server covers multiple subdomains (GitHub reads, mutation requests, approval execution, system health), so the count is defensible albeit heavy.
Read-only GitHub coverage is broad (repos, issues, PRs, commits, code, workflows, file contents). Mutation coverage is limited to issues (create, comment, label, close, reopen) with no PR mutations or issue editing. The human-approval workflow is well-defined, but the lack of broader write operations creates noticeable gaps for a GitHub-oriented server.
Maintenance
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA self-hosted GitHub MCP server with per-repository guardrails for AI agents, enabling fine-grained access control and audit trails.-
- AlicenseCqualityDmaintenanceA policy-aware MCP server for GitHub and GitHub Actions that enables safe AI-assisted infrastructure workflows—inspecting repositories, preparing branches and pull requests, and constrained remote mutations behind explicit preview-bound approval tokens.18MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides a security gateway for AI agents, enforcing allow/confirm/deny policies on tool calls and requiring human approval for risky operations, with full audit logging.-
- AlicenseNot gradedqualityCmaintenanceTurns any AI coding agent or MCP client into a governed DevOps engineer by exposing policy-enforced tools for Kubernetes, Docker, Jira, Git/PR, CI/CD, AWS, Terraform, and incident response, with approvals, audit logging, secret redaction, and rollback enforced outside the model.6Apache 2.0