mcphub
samanhappy/mcphub/AGENTS.md
MCPHub (@samanhappy/mcphub) is a TypeScript/Node.js ESM hub that aggregates MCP servers behind a single HTTP service with a React/Vite dashboard.
AGENTS.md2.5k starsChanged 28 days ago
# MCPHub — Agent Guide
MCPHub (`@samanhappy/mcphub`) is a TypeScript/Node.js ESM hub that aggregates MCP servers behind a single HTTP service with a React/Vite dashboard.
## Always apply
- Use `pnpm` (`pnpm@10.12.4`, declared in `package.json`).
- Treat the current implementation as the source of truth. If this guide disagrees with the code, follow the code and update the guide; tests document expected behavior and should change only when behavior intentionally changes.
- Do not hand-edit generated output: `dist/`, `frontend/dist/`, or `coverage/`.
- Read the scoped guide relevant to the files you will change. The full index is in [docs/agents/README.md](docs/agents/README.md).
- Prefer the `gh` CLI for GitHub operations — reviewing PRs, reading issues, fetching diffs, creating PRs — over scraping the GitHub web UI or hand-calling the REST API. Command details live in [docs/agents/git-and-contribution.md](docs/agents/git-and-contribution.md).
- The agent shell runs non-interactively with a minimal `PATH`, so bare `gh`, `pnpm`, `node`, and `npx` may report `command not found` even when installed. See [docs/agents/development.md](docs/agents/development.md) ("Agent shell `PATH`") for how to locate and export the toolchain.
- The agent shell file sandbox denies writes outside the repo, so `npx`/`uvx` cache writes fail with `EPERM` and tests that spawn real MCP servers via `npx` time out. See [docs/agents/development.md](docs/agents/development.md) ("Agent shell file sandbox") for the workaround.
## Project-specific build checks
- Backend typecheck/build: `pnpm backend:build`
- Full build: `pnpm build`
- Distribution verification: `node scripts/verify-dist.js`
- Mintlify docs validation: `pnpm docs:validate`
## Scoped guides
- [Architecture and data/auth invariants](docs/agents/architecture.md)
- [Development workflow and troubleshooting](docs/agents/development.md)
- [TypeScript and frontend conventions](docs/agents/typescript-and-frontend.md)
- [Testing](docs/agents/testing.md)
- [API and CLI changes](docs/agents/api-and-cli.md)
- [Git and contribution workflow](docs/agents/git-and-contribution.md)
- [Agent-guide maintenance](docs/agents/guide-maintenance.md)
- [Domain documentation](docs/agents/domain.md)
- [GitHub issue tracker](docs/agents/issue-tracker.md)
- [Triage labels](docs/agents/triage-labels.md)
- [Security advisory lifecycle](docs/agents/security-advisories.md)
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

