restricted-github-mcp 1.0.1 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -34,6 +34,52 @@ Le serveur se configure exclusivement via des variables d'environnement. Ces var
|
|
|
34
34
|
| `BASE_BRANCH` | (Optionnel) La branche de destination pour la PR | `main` (défaut) |
|
|
35
35
|
| `READ_ONLY` | (Optionnel) Désactive les actions d'écriture | `false` (défaut) |
|
|
36
36
|
|
|
37
|
+
## 🖥️ Exemple de Configuration MCP
|
|
38
|
+
|
|
39
|
+
Copiez-collez cette configuration dans votre client MCP (ex: `claude_desktop_config.json` ou paramètres Cursor) :
|
|
40
|
+
|
|
41
|
+
### Via npx (Recommandé)
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"mcpServers": {
|
|
45
|
+
"restricted-github-mcp": {
|
|
46
|
+
"command": "npx",
|
|
47
|
+
"args": [
|
|
48
|
+
"-y",
|
|
49
|
+
"restricted-github-mcp"
|
|
50
|
+
],
|
|
51
|
+
"env": {
|
|
52
|
+
"GITHUB_TOKEN": "votre_token_github_ici",
|
|
53
|
+
"TARGET_REPO": "propriétaire/nom-du-repo",
|
|
54
|
+
"TARGET_BRANCH": "votre-branche-de-travail",
|
|
55
|
+
"BASE_BRANCH": "main"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Via installation locale
|
|
63
|
+
Si vous avez cloné le dépôt et exécuté `npm run build` :
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"mcpServers": {
|
|
67
|
+
"restricted-github-mcp": {
|
|
68
|
+
"command": "node",
|
|
69
|
+
"args": [
|
|
70
|
+
"C:/chemin/vers/votre/projet/dist/index.js"
|
|
71
|
+
],
|
|
72
|
+
"env": {
|
|
73
|
+
"GITHUB_TOKEN": "votre_token_github_ici",
|
|
74
|
+
"TARGET_REPO": "propriétaire/nom-du-repo",
|
|
75
|
+
"TARGET_BRANCH": "votre-branche-de-travail",
|
|
76
|
+
"BASE_BRANCH": "main"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
37
83
|
## 📦 Publication Automatisée
|
|
38
84
|
|
|
39
85
|
Ce projet est configuré pour être publié sur npm via **GitHub Actions** à chaque nouvelle "Release" sur le dépôt GitHub.
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "restricted-github-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
|
-
"bin":
|
|
10
|
-
"restricted-github-mcp": "./dist/index.js"
|
|
11
|
-
},
|
|
9
|
+
"bin": "dist/index.js",
|
|
12
10
|
"scripts": {
|
|
13
11
|
"start": "tsx src/index.ts",
|
|
14
12
|
"dev": "tsx src/index.ts",
|
|
@@ -16,7 +14,8 @@
|
|
|
16
14
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
15
|
"inspect": "mcp-inspector node dist/index.js",
|
|
18
16
|
"inspect:dev": "mcp-inspector --config mcp-config.json",
|
|
19
|
-
"inspect:no-auth": "mcp-inspector -e DANGEROUSLY_OMIT_AUTH=true --config mcp-config.json"
|
|
17
|
+
"inspect:no-auth": "mcp-inspector -e DANGEROUSLY_OMIT_AUTH=true --config mcp-config.json",
|
|
18
|
+
"release": "npm version patch && npm run build && npm publish --access public && git push origin main --follow-tags"
|
|
20
19
|
},
|
|
21
20
|
"keywords": [],
|
|
22
21
|
"author": "",
|