SpawnDock bootstrap CLI for local TMA projects.
This repository now follows an effect-template-style layout:
- root workspace with
packages/app - TypeScript + Effect entrypoint
- built-in TMA overlay bundled inside the CLI repo
The canonical TMA starter lives in https://github.com/SpawnDock/tma-project.
@spawn-dock/create clones that repo, applies the bundled SpawnDock TMA overlay,
and then writes project-specific runtime files.
npx -y @spawn-dock/create@beta --token <pairing-token> [project-dir]If npm registry access is unavailable, the GitHub fallback remains:
npx --yes github:SpawnDock/create#main --token <pairing-token> [project-dir]spawndock.config.json.env.localspawndock.dev-tunnel.jsonpublic/tonconnect-manifest.json
spawndock.config.json may include apiToken, and .env.local may include
SPAWNDOCK_API_TOKEN, so the bundled TMA knowledge-search skill can use the
authenticated API tier immediately after bootstrap.
The package also ships a built-in TMA overlay and applies it after cloning
SpawnDock/tma-project. This overlay is responsible for:
AGENTS.mdCLAUDE.md.agents/skills/tma-knowledge-searchspawndock/dev.mjsspawndock/next.mjsspawndock/tunnel.mjsspawndock/mcp.mjsopencode.json.mcp.jsonnext.config.tspublic/tonconnect-manifest.json- patching project scripts (
pnpm run agent→node ./spawndock/agent.mjs, dev/tunnel helpers) and@spawn-dock/*packages
spawndock/mcp.mjs resolves <controlPlaneUrl>/mcp/sse from
spawndock.config.json.
opencode.jsonis shipped by the template for OpenCode..mcp.jsonis shipped by the template for Claude Code.AGENTS.mdis shipped by the template for repo-level AI agent instructions.CLAUDE.mdis shipped by the template for Claude Code project memory..agents/skills/tma-knowledge-searchis shipped by the template as the local TMA knowledge-search skill for compatible agents.- The bundled TMA knowledge-search skill is Node-based and runs via
node .agents/skills/tma-knowledge-search/scripts/search_tma_knowledge.mjs "<query>". - if
codexis installed locally, bootstrap also registers the same MCP server in the global Codex MCP config automatically. - bootstrap also mirrors
tma-knowledge-searchinto~/.codex/skillsso Codex can discover the same skill natively.
pnpm install
pnpm test
pnpm build