{"id":45843734,"url":"https://github.com/studiometa/forge-tools","last_synced_at":"2026-02-27T01:06:01.093Z","repository":{"id":340797802,"uuid":"1165101429","full_name":"studiometa/forge-tools","owner":"studiometa","description":"Laravel Forge tools — MCP server for AI agents","archived":false,"fork":false,"pushed_at":"2026-02-26T20:39:33.000Z","size":511,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-26T20:39:35.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/studiometa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2026-02-23T20:33:18.000Z","updated_at":"2026-02-26T20:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/studiometa/forge-tools","commit_stats":null,"previous_names":["studiometa/forge-tools"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/studiometa/forge-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiometa%2Fforge-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiometa%2Fforge-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiometa%2Fforge-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiometa%2Fforge-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/studiometa","download_url":"https://codeload.github.com/studiometa/forge-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiometa%2Fforge-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29876409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-02-27T01:06:00.541Z","updated_at":"2026-02-27T01:06:01.086Z","avatar_url":"https://github.com/studiometa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Forge Tools\n\n[![CI](https://github.com/studiometa/forge-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/studiometa/forge-tools/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat\u0026colorB=3e63dd\u0026colorA=414853)](https://opensource.org/licenses/MIT)\n\n**The missing TypeScript SDK for Laravel Forge** — plus an MCP server for AI agents.\n\nThe official Forge SDK exists only in PHP. This project fills the gap with a fully-typed TypeScript SDK and an MCP server that puts every Forge endpoint in the hands of AI agents.\n\n## Packages\n\n| Package                                     | Description                                            |\n| ------------------------------------------- | ------------------------------------------------------ |\n| [`@studiometa/forge-sdk`](./packages/sdk)   | **Fluent, chainable TypeScript SDK** for Laravel Forge |\n| [`@studiometa/forge-cli`](./packages/cli)   | CLI tool for managing Forge servers, sites, and more   |\n| [`@studiometa/forge-mcp`](./packages/mcp)   | MCP server for Claude Desktop and other MCP clients    |\n| [`@studiometa/forge-core`](./packages/core) | Shared business logic — executor functions with DI     |\n| [`@studiometa/forge-api`](./packages/api)   | Internal API client, types, config, and rate limiter   |\n\n## Quick Start\n\n### CLI\n\n```bash\nnpm install -g @studiometa/forge-cli\n```\n\n```bash\n# Save your API token\nforge-cli config set YOUR_FORGE_TOKEN\n\n# List all servers\nforge-cli servers list\n\n# List sites on a server\nforge-cli sites list --server 123\n\n# Deploy a site\nforge-cli deployments deploy --server 123 --site 456\n\n# Get JSON output (for scripting and AI agents)\nforge-cli servers list --format json\n```\n\n### SDK\n\n```bash\nnpm install @studiometa/forge-sdk\n```\n\n```typescript\nimport { Forge } from \"@studiometa/forge-sdk\";\n\nconst forge = new Forge(\"your-api-token\");\n\n// List all servers\nconst servers = await forge.servers.list();\n\n// Deploy a site\nawait forge.server(123).site(456).deploy();\n\n// Get environment variables\nconst env = await forge.server(123).site(456).env.get();\n\n// Manage databases\nconst dbs = await forge.server(123).databases.list();\n```\n\n### MCP Server (Claude Desktop)\n\n```bash\nnpm install -g @studiometa/forge-mcp\n```\n\nAdd to your Claude Desktop config:\n\n```json\n{\n  \"mcpServers\": {\n    \"forge\": {\n      \"command\": \"forge-mcp\",\n      \"env\": {\n        \"FORGE_API_TOKEN\": \"your-api-token\"\n      }\n    }\n  }\n}\n```\n\nTwo tools with a clear safety split:\n\n- **`forge`** — read-only operations (`list`, `get`, `help`, `schema`) — auto-approvable\n- **`forge_write`** — write operations (`create`, `delete`, `deploy`, `reboot`, etc.) — always requires confirmation\n\nFor a read-only setup (no writes possible), use `\"args\": [\"--read-only\"]` or `FORGE_READ_ONLY=true`.\n\n## Getting Your API Token\n\n1. Log into [Laravel Forge](https://forge.laravel.com)\n2. Go to **Account → API Tokens**\n3. Create a new token with the scopes you need\n4. Copy the token (it's only shown once)\n\n## Requirements\n\n- **Node.js 18+** (SDK and API packages)\n- **Node.js 24+** (for development)\n- **Laravel Forge account** with API access\n\n## Architecture\n\n```\nforge-api   → (nothing)       # HTTP client, types, config, rate limiter\nforge-sdk   → forge-api       # Fluent chainable SDK (the hero package)\nforge-core  → forge-api       # Executors with DI for MCP and CLI\nforge-mcp   → forge-core      # MCP server (stdio transport)\nforge-cli   → forge-core      # CLI tool (human + AI agent use)\n            → forge-api\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\nMIT © [Studio Meta](https://www.studiometa.fr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudiometa%2Fforge-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudiometa%2Fforge-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudiometa%2Fforge-tools/lists"}