Skip to main content

GitHub CLI token sync agent for MCP stacks

Project description

gh2mcp

gh2mcp to lekka paczka Python używana przez stack MCP do synchronizacji tokenu GitHub z gh CLI do pliku .env.

Funkcje

  • pobranie tokenu przez gh auth token
  • zapis GITHUB_PAT i GITHUB_USER do .env przez env2mcp
  • endpoint HTTP dla integracji z mcp-webui
  • opcjonalny tryb agenta (sync przy starcie i okresowo)

Lokalne użycie CLI

pip install -e ./env2mcp
pip install -e ./gh2mcp

gh2mcp status
gh2mcp sync --force-gh-cli
gh2mcp agent --interval 300

Docker

Kontener uruchamia API:

  • GET /health
  • GET /status
  • POST /sync/token

License

Licensed under Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gh2mcp-0.1.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gh2mcp-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file gh2mcp-0.1.2.tar.gz.

File metadata

  • Download URL: gh2mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gh2mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8df4fe2e348793951ca7bf1f5d0c52230fef6af716619cc8a9b7dfeb5b405ed1
MD5 e9f3d6db22fccc68066dee84ab4b073d
BLAKE2b-256 f297eb66413b4cdcfa3de5eb2397019ced82917371cc977c47d7d4f554082841

See more details on using hashes here.

File details

Details for the file gh2mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gh2mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gh2mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe8932f5a62c1d1ad0d358bcddde2be536479a325ffdd3817985e9776f080e29
MD5 819eb3287cf0d05b540ee785e73bc6f5
BLAKE2b-256 9630836214da48b2127983a634af9358222173348308dae32252c38e881ae1aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page