github-tool-agent
Provides tools for searching GitHub repositories via the official API, ranking candidates, and acquiring commit-pinned repository archives for secure inspection and build.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π€ GitHub AI
Turn plain-language needs into safely discovered developer tools
Discover β’ Evaluate β’ Acquire β’ Build β’ Verify β’ Run safely
v0.1.0 is the first public release: a security-first CLI and MCP server that lets an AI agent (Claude Code, OpenAI Codex, or any MCP client) discover a tool on GitHub, acquire it as untrusted source, build and behaviorally verify it inside a hardened Docker sandbox, register it in a managed catalog, and run it later under the same isolation. Nothing from GitHub ever executes on your host.
β¨ The vision
Millions of useful tools live on GitHub, but finding the right repository, judging its quality, installing dependencies, and running unknown code safely still requires specialist knowledge.
GitHub AI bridges that gap. It interprets a natural-language request, searches GitHub, ranks suitable projects with clear evidence, securely acquires their source, and prepares them inside hardened isolated environments.
The long-term goal is simple: make developer tools accessible to everyone while keeping security, provenance, and user control at the center.
Related MCP server: GithubMCP
π What it does
Capability | Description |
π¬ Understands intent | Converts plain-language requirements into a structured tool search. |
π Discovers tools | Searches GitHub through the official API and explainably ranks candidates. |
π‘οΈ Acquires securely | Pins archives to commits, enforces download limits, validates extraction, and hashes content. |
π§ͺ Inspects safely | Examines source statically without importing or executing repository code. |
π¦ Plans deterministic builds | Detects runtimes and lockfiles, applies dependency policy, and records auditable build plans. |
π³ Uses hardened sandboxes | Creates restricted Docker environments and verifies their effective security controls. |
π Preserves evidence | Stores lifecycle events, decisions, logs, artifacts, and provenance for later review. |
π¨ How it works
π€ Plain-language request
β
βΌ
π§ Interpret requirements
β
βΌ
π Search and rank GitHub repositories
β
βΌ
π‘οΈ Acquire and inspect untrusted source
β
βΌ
π¦ Plan and approve a deterministic build
β
βΌ
π³ Build and verify inside an isolated sandbox
β
βΌ
β
Auditable tool registration and controlled executionπ Security by design
GitHub repositories are treated as untrusted code from the first byte. The project follows a fail-closed model:
Source code never executes directly on the host.
Downloads are commit-pinned, size-limited, validated, and deterministically hashed.
Archive extraction blocks traversal, links, special files, and unsafe paths.
Build plans require explicit approval and use catalog-owned commands.
Containers use restricted privileges, isolated workspaces, and verified security settings.
Network-dependent build steps remain blocked unless an approved controller can enforce policy.
Logs are bounded and redacted; important actions produce durable audit evidence.
Secrets are redacted from logs and error payloads (
[REDACTED TOKEN]);system_doctorreports only whether a GitHub token is configured, never its value.Execution is admission-controlled: only registered, behaviorally verified tools run, and each run is isolated and cleaned up (no leftover containers or workspaces).
Idempotent execution requests: identical concurrent requests resolve to one attempt.
Limits: Docker containers share the host kernel. v0.1.0 is not a defense against kernel-level escapes; do not point it at a Docker daemon you do not trust.
Read the security model, threat model, and sandbox policy for details.
π§© Architecture
The codebase follows clean architecture, keeping core policy independent from frameworks and infrastructure:
CLI β Application handlers β Domain
β
Infrastructure adaptersDomain: lifecycle rules, value objects, policies, and invariants
Application: use cases and ports
Infrastructure: GitHub, SQLite, Docker, filesystem, and runtime adapters
Interfaces: Typer-based command-line experience
See the full architecture guide.
β‘ Quick start
Requirements
Python 3.12+
Docker Engine for sandbox and build operations
A GitHub token for authenticated discovery
Installation
git clone git@github.com:Abdullahzahoor755/github-tool-agent.git
cd github-tool-agent
python3.12 -m venv .venv
.venv/bin/pip install -e '.[dev]'
cp .env.example .env
# Add your GitHub token to .env: GTA_GITHUB__TOKEN=<token>
.venv/bin/tool-agent db upgrade
.venv/bin/tool-agent doctorEnd-to-end in five commands
.venv/bin/tool-agent discover "Find a Go CLI that prints a greeting"
.venv/bin/tool-agent acquisition run https://github.com/<owner>/<repo>
.venv/bin/tool-agent inspect source src_<id>
# build + verify + register (see "Prepare a secure build" below, or the MCP tool build_and_verify_tool)
.venv/bin/tool-agent run cat_<id> -- --helpDiscover a tool
.venv/bin/tool-agent discover "Find a GitHub tool that converts PDF files to Word"
.venv/bin/tool-agent discovery candidates dis_<id>Acquire and inspect source
.venv/bin/tool-agent acquisition run https://github.com/example/tool
.venv/bin/tool-agent inspect source src_<id>Prepare a secure build
.venv/bin/tool-agent build create tool_<id> --source-artifact-id src_<id>
.venv/bin/tool-agent build plan bld_<id>
.venv/bin/tool-agent build approve bld_<id> --reason "Reviewed recorded plan"
.venv/bin/tool-agent build start bld_<id>Run .venv/bin/tool-agent --help to explore all commands.
π₯οΈ CLI usage
Command | Purpose |
| Search GitHub, rank candidates with evidence, and shortlist a repository. Options: |
| Behaviorally verify a successful build inside the hardened sandbox. Options: |
| Register a passed verification report in the managed catalog. Options: |
| Run a verified catalog tool in the sandbox. Prints exit code, admission decision ( |
| List verified tools ( |
| Check configuration, database, migrations, security defaults, and Docker sandbox capabilities. |
| Start the MCP server (stdio by default; |
π MCP setup (Claude Code and OpenAI Codex)
The MCP server exposes six tools: discover_github_tools, acquire_and_inspect_repo, build_and_verify_tool, list_verified_tools, run_verified_tool, and system_doctor.
Use absolute paths so the server finds the same database and data directory regardless of the client's working directory.
Claude Code
claude mcp add github-tool-agent \
-e GTA_GITHUB__TOKEN=<token> \
-e GTA_DATA_DIRECTORY=/abs/path/github-tool-agent/data \
-e GTA_DATABASE_URL=sqlite:////abs/path/github-tool-agent/data/tool-agent.db \
-- /abs/path/github-tool-agent/.venv/bin/tool-agent mcpOpenAI Codex (~/.codex/config.toml)
[mcp_servers.github-tool-agent]
command = "/abs/path/github-tool-agent/.venv/bin/tool-agent"
args = ["mcp"]
[mcp_servers.github-tool-agent.env]
GTA_GITHUB__TOKEN = "<token>"
GTA_DATA_DIRECTORY = "/abs/path/github-tool-agent/data"
GTA_DATABASE_URL = "sqlite:////abs/path/github-tool-agent/data/tool-agent.db"Codex users also get an orchestration guide at .codex/skills/github-tool-agent/SKILL.md. Run tool-agent db upgrade once before first use, and confirm with the system_doctor tool.
π§ͺ Development
.venv/bin/pytest
.venv/bin/ruff check .
.venv/bin/ruff format --check .
.venv/bin/mypyThe test suite includes unit, integration, architecture, security, malicious-archive, build, sandbox, verification, registration, and runtime-admission coverage.
πΊοΈ Roadmap
Shipped in v0.1.0
Secure repository resolution and acquisition
Natural-language discovery and explainable ranking
Static source inspection
Hardened sandbox lifecycle
Deterministic build planning and artifact collection
Behavioral verification, managed catalog, and admission-controlled execution
MCP server for Claude Code and OpenAI Codex
v2 roadmap
Stronger isolation through microVM (for example Firecracker) or remote execution backends
Policy-controlled network egress for builds that need dependencies
Broader runtime and ecosystem support beyond the current build strategies
Additional verification capability packs beyond
CLI_SMOKEFriendly web experience for non-technical users
Community-driven trust signals and reusable verification evidence
π± Project status
v0.1.0, initial public release. The core pipeline (discover β acquire β inspect β build β verify β register β run) works end to end. Interfaces and storage schemas may change before v1.0. Treat generated results and third-party tools as untrusted until independently reviewed.
π€ Contributing
Ideas, bug reports, security improvements, tests, and documentation contributions are welcome. Please open an issue before proposing a large architectural change.
Building a safer bridge between human ideas and open-source software π
If this vision resonates with you, consider giving the project a β.
π License
Licensed under the Apache License 2.0. Copyright (c) 2026 M. Abdullah.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Governance and control for agentic software development. Trust AI written code.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Agent-native security, trust, reliability, data and procurement tools for AI workflows.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to automatically analyze GitHub repositories and set up development environments by detecting tech stacks, installing dependencies, and verifying project builds. Provides safe tools for repository cloning, file system operations, package installation, and build verification through an allowlisted command system.-
- AlicenseAqualityDmaintenanceConnects AI assistants to GitHub repositories, pull requests, issues, commits, and code search while enabling repository visibility controls, CI/CD monitoring, sandboxed local filesystem access, and code quality/security analysis.131MIT
- AlicenseNot gradedqualityBmaintenanceEnables autonomous AI agents to securely access and execute external tools, such as GitHub REST API operations, with per-user authentication, authorization, audit logging, and observability.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to inspect local and remote repositories through sandboxed tools that surface project overviews, structure, dependency audits, Git churn hotspots, and a heuristic health score. It also supports safe GitHub issue searching and creation with built-in duplicate preflight checks, while blocking sensitive files, binary content, and path traversal attacks.MIT