{"id":35186561,"url":"https://github.com/malston/bosh-mcp-server","last_synced_at":"2026-04-27T01:31:02.055Z","repository":{"id":326264110,"uuid":"1104809814","full_name":"malston/bosh-mcp-server","owner":"malston","description":"MCP server that provides BOSH Director operations to AI assistants like Claude","archived":false,"fork":false,"pushed_at":"2025-11-26T22:54:13.000Z","size":82,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-31T21:39:51.114Z","etag":null,"topics":["ai","bosh","claude","golang","mcp","mcp-server"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malston.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-26T18:08:24.000Z","updated_at":"2025-11-26T22:51:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/malston/bosh-mcp-server","commit_stats":null,"previous_names":["malston/bosh-mcp-server"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/malston/bosh-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malston%2Fbosh-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malston%2Fbosh-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malston%2Fbosh-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malston%2Fbosh-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malston","download_url":"https://codeload.github.com/malston/bosh-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malston%2Fbosh-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32319559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bosh","claude","golang","mcp","mcp-server"],"created_at":"2025-12-29T05:00:06.578Z","updated_at":"2026-04-27T01:31:02.040Z","avatar_url":"https://github.com/malston.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bosh-mcp-server\n\nAn MCP (Model Context Protocol) server that provides BOSH Director operations to AI assistants like Claude.\n\n## Features\n\n- **18 BOSH tools** for diagnostics, infrastructure inspection, and deployment operations\n- **Layered authentication**: environment variables → ~/.bosh/config → Ops Manager\n- **Confirmation tokens** for destructive operations (configurable)\n- **Async task handling**: deployment operations wait for completion by default\n\n## Installation\n\n### From Source\n\n```bash\ngit clone https://github.com/malston/bosh-mcp-server.git\ncd bosh-mcp-server\ngo build -o bosh-mcp-server ./cmd/bosh-mcp-server\n```\n\n### Binary\n\nDownload the latest release from the [releases page](https://github.com/malston/bosh-mcp-server/releases).\n\n## Configuration\n\n### Authentication\n\nThe server resolves BOSH credentials in order of precedence:\n\n1. **Environment variables** (highest priority)\n   ```bash\n   export BOSH_ENVIRONMENT=https://10.0.0.5:25555\n   export BOSH_CLIENT=admin\n   export BOSH_CLIENT_SECRET=secret\n   export BOSH_CA_CERT=/path/to/ca.crt\n   ```\n\n2. **BOSH config file** (`~/.bosh/config`)\n   - Standard BOSH CLI configuration format\n   - Supports named environments\n\n3. **Ops Manager** (fallback)\n   ```bash\n   export OM_TARGET=https://opsman.example.com\n   export OM_USERNAME=admin\n   export OM_PASSWORD=secret\n   ```\n   The server calls `om bosh-env` and caches credentials for 5 minutes.\n\n### Server Configuration\n\nOptional configuration via `~/.bosh-mcp/config.yaml`:\n\n```yaml\n# Token TTL for confirmation tokens (seconds)\ntoken_ttl: 300\n\n# Operations requiring confirmation tokens\nconfirm_operations:\n  - delete_deployment\n  - recreate\n  - stop\n  - cck\n\n# Operations blocked entirely\nblocked_operations: []\n```\n\nSet `BOSH_MCP_CONFIG` to use a custom config path.\n\n## Usage with Claude Desktop\n\nAdd to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"bosh\": {\n      \"command\": \"/path/to/bosh-mcp-server\",\n      \"env\": {\n        \"BOSH_ENVIRONMENT\": \"https://10.0.0.5:25555\",\n        \"BOSH_CLIENT\": \"admin\",\n        \"BOSH_CLIENT_SECRET\": \"your-secret\",\n        \"BOSH_CA_CERT\": \"/path/to/ca.crt\"\n      }\n    }\n  }\n}\n```\n\n## Available Tools\n\n### Diagnostic Tools\n\n| Tool | Description |\n|------|-------------|\n| `bosh_vms` | List VMs for a deployment |\n| `bosh_instances` | List instances with process details |\n| `bosh_tasks` | List recent BOSH tasks |\n| `bosh_task` | Get details of a specific task |\n| `bosh_task_wait` | Wait for a task to complete |\n\n### Infrastructure Tools\n\n| Tool | Description |\n|------|-------------|\n| `bosh_stemcells` | List uploaded stemcells |\n| `bosh_releases` | List uploaded releases |\n| `bosh_deployments` | List all deployments |\n| `bosh_cloud_config` | Get current cloud config |\n| `bosh_runtime_config` | Get runtime configs |\n| `bosh_cpi_config` | Get CPI config |\n| `bosh_variables` | List variables for a deployment |\n| `bosh_locks` | Show current deployment locks |\n\n### Deployment Tools\n\n| Tool | Description | Confirmation Required |\n|------|-------------|----------------------|\n| `bosh_delete_deployment` | Delete a deployment | Yes |\n| `bosh_recreate` | Recreate VMs | Yes |\n| `bosh_stop` | Stop jobs | Yes |\n| `bosh_start` | Start jobs | No |\n| `bosh_restart` | Restart jobs | No |\n\nAll deployment tools wait for task completion by default (configurable timeout).\n\n## Confirmation Token Flow\n\nDestructive operations require a two-step confirmation:\n\n1. **Request operation** (without confirm parameter):\n   ```\n   bosh_delete_deployment(deployment: \"my-app\")\n   → {\"requires_confirmation\": true, \"confirmation_token\": \"tok_abc123\", ...}\n   ```\n\n2. **Confirm operation** (with token):\n   ```\n   bosh_delete_deployment(deployment: \"my-app\", confirm: \"tok_abc123\")\n   → {\"task_id\": 456, \"state\": \"done\", ...}\n   ```\n\nTokens expire after 5 minutes (configurable) and are single-use.\n\n## Development\n\n### Prerequisites\n\n- Go 1.21+\n\n### Building\n\n```bash\ngo build ./cmd/bosh-mcp-server\n```\n\n### Testing\n\n```bash\ngo test ./... -v\n```\n\n### Manual Testing with Claude Code\n\nA [mock BOSH Director](https://github.com/malston/bosh-mock-director) is available for manually testing the MCP server with Claude Code without needing a real BOSH environment.\n\n**Setup:**\n\n```bash\n# Clone and build the mock director\ngit clone https://github.com/malston/bosh-mock-director.git\ncd bosh-mock-director\ngo build -o mock-bosh-director ./cmd/mock-bosh-director\n\n# Start the mock director (Terminal 1)\n./mock-bosh-director\n\n# Build the MCP server\ncd /path/to/bosh-mcp-server\ngo build -o bosh-mcp-server ./cmd/bosh-mcp-server\n\n# Start Claude Code from the mock-director directory (Terminal 2)\n# This picks up the pre-configured .claude/mcp.json\ncd /path/to/bosh-mock-director\nclaude\n```\n\nThe mock director includes realistic sample data:\n- 3 deployments (`cf`, `redis`, `mysql`) with VMs and instances\n- Stemcells, releases, and configs\n- Task simulation with state progression\n- State mutations for destructive operations\n\n**Example prompts to try:**\n- \"What deployments are running on BOSH?\"\n- \"Show me the VMs in the cf deployment\"\n- \"List the recent BOSH tasks\"\n- \"Stop the router job in cf\" (triggers confirmation)\n\n### Project Structure\n\n```\n├── cmd/bosh-mcp-server/    # Entry point\n├── internal/\n│   ├── auth/               # Authentication providers\n│   ├── bosh/               # BOSH API client\n│   ├── config/             # Server configuration\n│   ├── confirm/            # Confirmation token system\n│   └── tools/              # MCP tool handlers\n└── test/                   # Integration tests\n```\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalston%2Fbosh-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalston%2Fbosh-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalston%2Fbosh-mcp-server/lists"}