Giving an Agent Control of a Local TDK Stack
Описание и применение
Автоматизация управления локальным стеком TDK с помощью агента, использующего MCP-сервер и инструменты TDK CLI
Задача
How to enable an AI agent to manage a local TDK stack reliably
Результат
An agent can autonomously start, monitor, and stop a local TDK stack, reducing manual intervention and speeding up debugging cycles
Рабочий процесс
- Install TDK CLI
- Run tdk doctor --json to verify host capabilities
- Configure the MCP server in the agent client (e.g., Codex or Claude Code) to point to the TDK project
- Use the MCP tools (doctor, up, down, status, logs, resource_list) to control the stack
- Poll status until data.tilt.readiness.ready is true after up
- Handle errors via typed exit codes
- Log every tool call for review
- Test the loop on a throwaway project before production use
Доказательства
TDK CLI is not an AI model and does not decide what to build. It is a local tool that describes a stack in service.json files and runs it with Docker and Tilt.
The MCP server exposes six tools: doctor, up, down, status, logs, and resource_list.
Run tdk doctor --json to verify host capabilities before handing anything to an agent.
- Дата записи: 2026-10-18T13:10:59.395Z