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.3.tar.gz (5.3 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.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gh2mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 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.3.tar.gz
Algorithm Hash digest
SHA256 8011f5c58a521b247b73f1589ec6ba347abeae1ae741cb1e165369b56041d8ad
MD5 a4730092edb54c270140e21fddb10ffc
BLAKE2b-256 a939b92d3eba71dee8479d70976c36dc7246a20e3a54b560ed7a040a008ed2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gh2mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 765b9fcd1d40a6158ecd09c86a45e86790130b809b3e92676ac0fd9348c8f3a3
MD5 5697dbc2fda78ba6b818a69957d6c3ef
BLAKE2b-256 cca95306b25a06d2f4ca6c3e962ab457188da3814636611bb298fef0691173e9

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