agentleFS
smart-mcp-proxysmart-mcp-proxy/mcpproxy-go/AGENTS.md

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.

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
  1. Very specific:

    Run gofmt (tabs, goimports defaults) on all Go sources.

    line 17
  2. Very specific:

    Use concise, imperative commit messages (e.g., Fix upstream disable locking).

    line 28
  3. Very specific:

    Keep change scopes bounded to one surface (runtime vs.

    line 30
  4. Very specific:

    Never hardcode secrets; load them via the tray secure store or environment lookups in internal/secret.

    line 33
  5. Very specific:

    When editing configs, prefer runtime.SaveConfiguration() flows so disk state and in-memory state stay aligned.

    line 34

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository Guidelines

Project Structure & Module Organization

  • cmd/mcpproxy hosts the core daemon entrypoint; cmd/mcpproxy-tray builds 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 from web/.
  • Integration and regression assets reside under tests/ and scripts/; 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-tray validates the macOS tray target.
  • npm install && npm run build inside frontend/ — 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/v1 REST 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 use PascalCase.vue, composables use useThing.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/... (set GOCACHE/GOMODCACHE to workspace paths when sandboxed).
  • Targeted suites: go test ./internal/server -run TestMCP -v for lifecycle checks; npm run test:unit for frontend units.
  • End-to-end: scripts/run-e2e-tests.sh after ensuring @modelcontextprotocol/server-everything is warmed and reachable.
  • Name Go tests TestFeatureScenario; snapshot or fixture data belong under tests/ 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.