コンテンツにスキップ

フルスタック開発

hatago-config.json
{
"$schema": "https://raw.githubusercontent.com/himorishige/hatago-hub/main/schemas/config.schema.json",
"version": 1,
"logLevel": "debug",
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
"tags": ["essential", "dev"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" },
"tags": ["vcs", "dev"]
},
"database": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": { "DATABASE_URL": "${DATABASE_URL:-postgresql://localhost/dev}" },
"tags": ["database", "dev"]
}
}
}
Terminal window
hatago serve --tags dev --watch

dev / staging / production のタグを決め、--tags で切り替える。