feat: tambah MCP server deploy-stg untuk trigger GitHub workflow

- scripts/mcp-deploy.ts: MCP server dengan 2 tool:
  - publish: trigger publish.yml (build & push image stg)
  - repull: trigger re-pull.yml (redeploy stack di Portainer)
- .mcp.json: registrasi server dengan env GH_TOKEN, STACK_NAME, BASE_URL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-29 16:01:16 +08:00
parent 5050835d81
commit d3a4f97d0e
4 changed files with 243 additions and 0 deletions

14
.mcp.json Normal file
View File

@@ -0,0 +1,14 @@
{
"mcpServers": {
"deploy-stg": {
"type": "stdio",
"command": "bun",
"args": ["scripts/mcp-deploy.ts"],
"env": {
"GH_TOKEN": "",
"STACK_NAME": "",
"BASE_URL": ""
}
}
}
}