Notre avis
Configure l'accès GitHub au niveau du projet via MCP en utilisant un token d'accès personnel à granularité fine, pour permettre à Claude Code d'interagir avec les dépôts GitHub.
Points forts
- Isolation des tokens par projet, limitant les risques de sécurité
- Ajout automatique de .mcp.json au .gitignore pour éviter les fuites
- Guide l'utilisateur pas à pas pour créer un token avec des permissions minimales
- Propose à la fois une méthode fichier et une méthode CLI
Limites
- Nécessite une création manuelle du token par l'utilisateur
- Les tokens expirent et doivent être renouvelés périodiquement
- Fonctionne uniquement avec le système MCP de Claude Code
Utilisez cette compétence lorsque vous devez accéder à des dépôts GitHub depuis Claude Code et que vous souhaitez une configuration sécurisée et limitée au projet.
Ne l'utilisez pas pour un accès GitHub global ou pour des projets qui ne nécessitent pas d'opérations GitHub.
Analyse de sécurité
SûrThe skill only writes a placeholder config file and updates .gitignore; no destructive or exfiltrating actions are performed. It emphasizes not reading token-containing files and encourages fine-grained PATs. No code execution beyond safe grep is used.
Aucun point d'attention détecté
Exemples
Set up GitHub MCP for this project so I can access PRs and issues.I need GitHub access from Claude Code. Please create the .mcp.json file and tell me how to configure it.Add GitHub MCP to this project using the CLI method.name: github-mcp description: Set up project-level GitHub MCP when GitHub operations (PRs, issues, repo access) are needed and no project GitHub MCP is configured. Automatically triggers when Claude detects GitHub access is required.
GitHub MCP Project Setup
This skill sets up per-project GitHub MCP configuration, keeping your GitHub Personal Access Token (PAT) isolated to specific projects rather than granting global access.
When to Use
Use this skill when:
- You need to access GitHub (PRs, issues, repo content) from Claude Code
- The project doesn't have GitHub MCP configured yet
- You want to avoid using a global GitHub PAT
Security Notice
CRITICAL: Claude must NEVER read files that may contain tokens.
- Never read
.mcp.jsonafter the user has added their token - Never read
.envfiles or any files that might contain secrets - The user is responsible for adding their token directly to the file
Instructions for Claude
When this skill is invoked:
Step 1: Create .mcp.json with Placeholder
Write this file to the project root (creating or overwriting):
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Step 2: Update .gitignore
Add .mcp.json to .gitignore if not already present:
# Check and add to .gitignore
grep -q "^\.mcp\.json$" .gitignore 2>/dev/null || echo ".mcp.json" >> .gitignore
Step 3: Guide the User
Tell the user:
Setup complete! Now you need to:
Create a Fine-Grained PAT at: https://github.com/settings/personal-access-tokens/new
- Token name: "Claude Code - [project name]"
- Expiration: 90 days (or as needed)
- Repository access: "Only select repositories" → select just this repo
- Permissions:
- Contents: Read and write
- Issues: Read and write
- Pull requests: Read and write
- Metadata: Read-only (auto-selected)
Edit
.mcp.jsonin your project root and replaceYOUR_TOKEN_HEREwith your PATRestart Claude Code (MCP only loads on startup)
Verify with:
claude mcp list
Alternative: CLI Method
If preferred, the user can run this command directly (replacing with their actual PAT):
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_PAT_HERE"}}' --scope project
This stores the token directly in the project config.
Security Notes
.mcp.jsonis automatically added to.gitignoreto prevent accidental commits- Fine-grained PATs limit access to specific repositories only
- Project-level config means the token only works in this project directory
- Tokens can be revoked anytime at https://github.com/settings/tokens
- Claude will never read the .mcp.json file after setup to protect your token
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.