Load GitHub token from environment or set manually
@jatinnahar15
关于 Load GitHub token from environment or set manually
Repository created via custom MCP Python server
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Load GitHub token from environment or set manually?
A custom MCP (Model Context Protocol) server that enables GitHub repository creation via HTTP POST requests. It uses a GitHub Personal Access Token loaded from the environment variable GITHUB_TOKEN to authenticate with the GitHub API.
How to use Load GitHub token from environment or set manually?
Install Python 3.x, Flask, and requests. Create a GitHub Personal Access Token with repo scope, set it as the environment variable GITHUB_TOKEN, then run the server script mcp_github_server.py. Send a POST request to http://localhost:5001/command with a JSON body specifying the create-repo command and repository details.
Key features of Load GitHub token from environment or set manually
- Requires Python 3, Flask, and requests libraries.
- GitHub token loaded from environment variable for security.
- Runs a local HTTP server on port 5001.
- Accepts JSON commands to create GitHub repositories.
- Supports public and private repository creation.
Use cases of Load GitHub token from environment or set manually
- Automating GitHub repository creation from a script or tool.
- Integrating GitHub repository provisioning into a larger MCP-based workflow.
- Quickly testing repository creation with custom parameters.
FAQ from Load GitHub token from environment or set manually
What are the dependencies to run this server?
Python 3.x, Flask, and requests. Install with pip install flask requests.
How do I set the GitHub token?
Set the environment variable GITHUB_TOKEN in your terminal. For Windows: set GITHUB_TOKEN=ghp_YourTokenHere.
How do I start the server?
Run the server script: python mcp_github_server.py.
What transport does the server use?
It listens for HTTP POST requests at http://localhost:5001/command.
How do I authenticate with GitHub?
The server reads the GITHUB_TOKEN environment variable. No additional authentication is required in the request body.
开发工具 分类下的更多 MCP 服务器
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
test
prysmaticlabsGo implementation of Ethereum proof of stake
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
评论