Model Context Protocol — Go MCP server + Laravel MCP package
Refuse to load brain.key when its mode is more permissive than 0600 — NewFromEnvironment carries the config error into Call() so callers get a clear "brain.key has insecure permissions, expected 0600" rather than a silent credential leak. Read path stats first; does not auto-chmod (would mask the misconfiguration). Write path uses coreio.Local.WriteMode and follows up with explicit os.Chmod 0600, correcting any pre-existing 0644 file on next write. Tests: write overwrites 0644 → 0600; read of 0644 fixture errors and leaves the mode untouched. Co-authored-by: Codex <noreply@openai.com> Closes tasks.lthn.sh/view.php?id=998 |
||
|---|---|---|
| .core | ||
| .github/workflows | ||
| cmd | ||
| docs | ||
| pkg/mcp | ||
| src/php | ||
| tests/cli/mcp | ||
| .gitattributes | ||
| .gitignore | ||
| CLAUDE.md | ||
| composer.json | ||
| EXCEPTIONS.md | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
mcp
Model Context Protocol — Go MCP server + Laravel MCP package