Model Context Protocol — Go MCP server + Laravel MCP package
#175 (T1/5 — shared Go HTTP client): - pkg/mcp/brain/client/client.go: shared client with retry, circuit breaker, org propagation - 30s default HTTP client, retry on network/5xx only, no retry on 4xx - Minimal circuit breaker for repeated failures - pkg/mcp/brain/client/client_test.go: httptest coverage #176 (T2/5 — direct subsystem + binaries adopt shared client): - pkg/mcp/brain/direct.go: refactored to delegate through *client.Client - pkg/mcp/brain/direct_test.go: tests updated to use brainclient.New - cmd/brain-seed/main.go: uses /v1/brain/remember via shared client with -org Verification: go test ./pkg/mcp/brain/client/... passed; go build cmd/brain-seed passed. Co-authored-by: Codex <noreply@openai.com> Closes tasks.lthn.sh/view.php?id=175 Closes tasks.lthn.sh/view.php?id=176 |
||
|---|---|---|
| .core | ||
| .github/workflows | ||
| cmd | ||
| docs | ||
| pkg/mcp | ||
| src/php | ||
| .gitattributes | ||
| .gitignore | ||
| CLAUDE.md | ||
| composer.json | ||
| EXCEPTIONS.md | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
mcp
Model Context Protocol — Go MCP server + Laravel MCP package