feat(*): t3code-mcp connector - machines, projects, dispatch, wait, interrupt

This commit is contained in:
hh
2026-08-29 20:36:21 +02:00
commit c86f34c9fa
21 changed files with 2891 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
## Code Principles
- **Simplicity**: Write simple, straightforward code
- **Readability**: Make code easy to understand
- **Maintainability**: Write code that's easy to update
- **Less Code = Less Debt**: Minimize code footprint
- **NEVER write comments** - code should be self-documenting
## Layout
- `src/t3code_mcp` - FastMCP server: `config.py` (machines from TOML), `t3.py` (HTTP client for a T3 Code server), `server.py` (tools)
- `t3code.example.toml` - config template; tokens come from env only
- `docs/PROGRESS.md` - keep current
## Checking commands
After writing code, always run (or `make check`):
```shell
ruff format # python formatter
ruff check --fix # python linter
ty check # python type-checker
pytest -q
```
Dependencies: `uv add`, never edit lock files by hand.
+15
View File
@@ -0,0 +1,15 @@
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "f=$(python3 -c 'import json,sys;print(json.load(sys.stdin).get(\"tool_input\",{}).get(\"file_path\",\"\"))'); case \"$f\" in *.py) uv run ruff format \"$f\" && uv run ruff check --fix \"$f\" ;; esac"
}
]
}
]
}
}