mcpproxy-go
AGENTS.md383 starsChanged 6 months agoMITView on GitHub
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run gofmt (tabs, goimports defaults) on all Go sources.
- Very specific: line 28
Use concise, imperative commit messages (e.g., Fix upstream disable locking).
- Very specific: line 30
Keep change scopes bounded to one surface (runtime vs.
- Very specific: line 33
Never hardcode secrets; load them via the tray secure store or environment lookups in internal/secret.
- Very specific: line 34
When editing configs, prefer runtime.SaveConfiguration() flows so disk state and in-memory state stay aligned.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Project Structure & Module Organization
cmd/mcpproxyhosts the core daemon entrypoint;cmd/mcpproxy-traybuilds the CGO-based tray binary.- Runtime logic, HTTP handlers, storage, and upstream orchestration live in
internal/(internal/runtime,internal/httpapi,internal/upstream,internal/storage). - Vue/Tailwind assets are kept in
frontend/; bundled static output is embedded fromweb/. - Integration and regression assets reside under
tests/andscripts/; Go unit tests sit beside source files.
Build, Test, and Development Commands
make build— compile the proxy and tray binaries for the host platform.go build ./cmd/mcpproxy— quick core rebuild;GOOS=darwin CGO_ENABLED=1 go build ./cmd/mcpproxy-trayvalidates the macOS tray target.npm install && npm run buildinsidefrontend/— install web deps and emit production assets.scripts/run-web-smoke.sh— spin up the proxy and execute the Playwright smoke suite.scripts/verify-api.sh— exercise the/api/v1REST surface with curated curl calls.
Coding Style & Naming Conventions
- Run
gofmt(tabs, goimports defaults) on all Go sources; prefer descriptive package-level names (runtime,upstream,storage). - TypeScript/Vue files follow Prettier defaults (
npm run lint); components usePascalCase.vue, composables useuseThing.ts. - Configuration and DTO structs live in shared packages (
internal/contracts,internal/httpapi); avoid anonymous maps between layers.
Testing Guidelines
- Unit tests:
go test ./internal/...(setGOCACHE/GOMODCACHEto workspace paths when sandboxed). - Targeted suites:
go test ./internal/server -run TestMCP -vfor lifecycle checks;npm run test:unitfor frontend units. - End-to-end:
scripts/run-e2e-tests.shafter ensuring@modelcontextprotocol/server-everythingis warmed and reachable. - Name Go tests
TestFeatureScenario; snapshot or fixture data belong undertests/with explicit prefixes.
Commit & Pull Request Guidelines
- Use concise, imperative commit messages (e.g.,
Fix upstream disable locking); avoid AI co-author tags. - PR descriptions should summarize impact, list verification commands, and link relevant P# items or issues; attach UI screenshots or log excerpts when behavior changes.
- Keep change scopes bounded to one surface (runtime vs. tray vs. web); document follow-up ideas in
IMPROVEMENTS.md.
Security & Configuration Tips
- Never hardcode secrets; load them via the tray secure store or environment lookups in
internal/secret. - When editing configs, prefer
runtime.SaveConfiguration()flows so disk state and in-memory state stay aligned; regenerated files land in~/.mcpproxy/.
Active Technologies
- Go 1.24 (toolchain go1.24.10) + BBolt (storage), Chi router (HTTP), Zap (logging), regexp (stdlib), existing ActivityService (026-pii-detection)
- BBolt database (
~/.mcpproxy/config.db) - ActivityRecord.Metadata extension (026-pii-detection)
Recent Changes
- 026-pii-detection: Added Go 1.24 (toolchain go1.24.10) + BBolt (storage), Chi router (HTTP), Zap (logging), regexp (stdlib), existing ActivityService
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

