GitHub MCP服务器Dojo🥋
一个用于实验的游乐场存储库 -探索其强大的工具、测试工作流程,并发现创造性的自动化可能性。
关于
该存储库充当GitHub模型上下文协议(MCP)服务器的测试场和学习环境。GitHub MCP Server提供与GitHub API的无缝集成,通过AI工具实现高级自动化和交互功能。
架构概述
graph TB
subgraph "Frontend Application"
HTML[index.html
Main Structure
🌐 Website Layout] --> CSS[styles.css
Dark Purple Theme
🎨 Visual Styling]
HTML --> JS[script.js
Interactive Features
⚡ DOM Manipulation]
CSS --> VARS[CSS Variables
🎯 Theme System
Color Management]
JS --> FEATURES[🔥 Features:
• Smooth Scrolling
• Animations
• Copy Functionality
• Progress Indicator]
end
subgraph "Development Toolchain"
PKG[package.json
📦 Dependencies & Scripts
Project Configuration] --> ESLINT[ESLint
📝 JavaScript Linting]
PKG --> STYLELINT[Stylelint
🎨 CSS Linting]
PKG --> HTMLHINT[HTMLHint
🌐 HTML Validation]
PKG --> PRETTIER[Prettier
✨ Code Formatting]
HTMLHINTRC[.htmlhintrc
⚙️ HTML Validation Rules] --> HTMLHINT
PACKAGELOCK[package-lock.json
🔒 Dependency Lock] --> PKG
end
subgraph "GitHub Integration"
MCP_EXAMPLE[.vscode/mcp.json.example
📋 MCP Server Template
Safe Configuration] --> GITHUB_API[GitHub MCP Server
🔗 Remote HTTP Endpoint
api.githubcopilot.com]
ENV_EXAMPLE[.env.example
🔐 Environment Template
Token Placeholder] --> LOCAL_SETUP[Local Development
🛠️ Configuration Setup]
CLAUDE_CONFIG[.claude/settings.local.json
🤖 Claude MCP Settings
Permissions & Servers]
end
subgraph "Documentation & Content"
README[README.md
📚 Project Overview
Architecture Guide] --> DOCS[.docs/prompts.md
📖 Usage Examples
314+ Lines of Workflows]
DOCS --> WORKFLOW_EXAMPLES[🎯 Workflow Categories:
• Repository Management
• Issue Automation
• PR Workflows
• CI/CD Integration
• Security & Compliance
• Team Collaboration]
end
subgraph "CI/CD Pipeline"
DEPLOY_WF[.github/workflows/deploy.yml
🚀 GitHub Pages Deploy
Automated Deployment] --> PAGES[GitHub Pages
🌍 Static Hosting
Live Website]
LINT_WF[.github/workflows/linter.yaml
✅ PR Validation
Code Quality Checks] --> QUALITY[Code Quality
🔍 Automated Checks
ESLint + Stylelint + HTMLHint]
PKG --> DEPLOY_WF
PKG --> LINT_WF
end
subgraph "Configuration & Security"
GITIGNORE[.gitignore
🛡️ Git Exclusions
Security Protection] --> NODE_MODULES[node_modules/
📚 Dev Dependencies
Excluded from Git]
GITIGNORE --> ENV_SECURITY[🔒 Protected Files:
• .env
• .vscode/mcp.json
• *.local files]
end
subgraph "Runtime Interactions"
BROWSER[🌐 Web Browser] --> HTML
VSCODE[💻 VS Code] --> MCP_EXAMPLE
GITHUB_API --> API_ENDPOINTS[GitHub REST API
🔧 Toolsets:
• repos • issues • pull_requests
• actions • code_security
• notifications • users
• secret_protection • context]
CLAUDE_CONFIG --> GITHUB_API
end
subgraph "Content Architecture"
HTML --> HERO[🎯 Hero Section
Project Introduction
Call-to-Action Buttons]
HTML --> TOOLSETS[🧰 Toolsets Grid
8 MCP Toolsets
Interactive Cards]
HTML --> QUICKSTART[⚡ Quick Start
Installation Options
Remote & Local Setup]
HTML --> EXAMPLES[📋 Examples Grid
6 Workflow Categories
Feature Showcase]
DOCS --> ADVANCED_EXAMPLES[🚀 Advanced Features:
• Cross-Repository Operations
• Intelligent Automation
• Security Workflows
• Team Analytics]
end
%% File Flow Dependencies
HTML -.->|references| CSS
HTML -.->|references| JS
CSS -.->|cache busting| VERSIONING[?v=2025-06-20]
JS -.->|cache busting| VERSIONING
%% Styling with enhanced colors
classDef frontend fill:#9D7BFF,stroke:#C792EA,stroke-width:3px,color:#fff
classDef toolchain fill:#4ADE80,stroke:#22C55E,stroke-width:3px,color:#000
classDef github fill:#60A5FA,stroke:#3B82F6,stroke-width:3px,color:#fff
classDef docs fill:#C792EA,stroke:#9D7BFF,stroke-width:3px,color:#fff
classDef cicd fill:#F59E0B,stroke:#D97706,stroke-width:3px,color:#000
classDef config fill:#6B7280,stroke:#4B5563,stroke-width:3px,color:#fff
classDef runtime fill:#EF4444,stroke:#DC2626,stroke-width:3px,color:#fff
classDef content fill:#10B981,stroke:#059669,stroke-width:3px,color:#fff
class HTML,CSS,JS,VARS,FEATURES,VERSIONING frontend
class PKG,ESLINT,STYLELINT,HTMLHINT,PRETTIER,HTMLHINTRC,PACKAGELOCK toolchain
class MCP_EXAMPLE,GITHUB_API,ENV_EXAMPLE,LOCAL_SETUP,CLAUDE_CONFIG,API_ENDPOINTS github
class README,DOCS,WORKFLOW_EXAMPLES,ADVANCED_EXAMPLES docs
class DEPLOY_WF,LINT_WF,PAGES,QUALITY cicd
class GITIGNORE,NODE_MODULES,ENV_SECURITY config
class BROWSER,VSCODE runtime
class HERO,TOOLSETS,QUICKSTART,EXAMPLES content里面是什么
.docs/prompts.md-示例提示和工作流的全面集合,展示了GitHub MCP Server的全部功能- 实验操场 -用于测试各种GitHub MCP Server功能和工具集的空间
- 工作流示例 -现实世界的自动化场景和用例
GitHub MCP服务器概述
GitHub MCP服务器提供了几个强大的工具集:
| 工具集 | 说明 |
|---|---|
| 回购协议 | 存储库操作(文件、分支、提交) |
| 问题 | 问题管理和跟踪 |
| pull_requests | 公关创建、审查和管理 |
| 行动 | GitHub操作工作流和CI/CD |
| 代码安全 | 代码扫描和安全警报 |
| 通知 | GitHub通知管理 |
| 用户 | 用户和帐户操作 |
| 秘密保护 | 秘密扫描和保护 |
| 上下文 | 当前用户和GitHub上下文 |
| 实验 | 实验特征 |
快速开始
远程服务器(最简单)
远程GitHub MCP服务器由GitHub托管,提供最简单的设置方法:
- VS代码:使用单击安装按钮 官方回购
- 手动配置:添加到MCP设置中:
{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}本地服务器(Docker)
对于本地开发或自定义配置:
docker run -i --rm \
-e GITHUB_PERSONAL_ACCESS_TOKEN= \
ghcr.io/github/github-mcp-server示例工作流
结账 .docs/prompts.md 详细示例包括:
- 库管理 -文件操作、分支管理、批量操作
- 问题自动化 -智能分流、分析、批量操作
- 公关工作流程 -自动审核、合并管理、分析
- CI/CD集成 -工作流监控、故障分析、部署自动化
- 安全与合规 -代码扫描、秘密检测、安全报告
- 团队协作 -通知管理、用户分析、跨仓库操作
入门指南
- 设置GitHub MCP服务器 跟随 官方文件
- 探索示例 在……里面
.docs/prompts.md - 开始实验 使用自己的工作流程和自动化
- 分享你的发现 -欢迎投稿!
配置提示
- 使用特定的工具集:仅启用您需要的功能
--toolsets为了获得更好的性能 - 从只读开始:使用
--read-only安全勘探标志 - 启用上下文工具集:始终包括
context更好地理解AI - 尝试实验:启用
experiments尖端功能工具集
资源
许可证
此项目根据MIT许可证获得许可-请参阅 了解详情。
______________________________________________________________________
🚀 准备好探索了吗? 从以下示例开始 .docs/prompts.md 释放GitHub自动化的力量!
