agentleFS
Hugging FaceKnown publisherhuggingface/hf-mcp-server/AGENTS.md

hf-mcp-server

AGENTS.md302 starsChanged 2 months agoMITView on GitHub

  • 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

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run all tests with pnpm test or package-specific commands above.

    line 34
  2. Distinctive:

    No explicit coverage gate is configured.

    line 35
  3. Very specific:

    Keep commits small and descriptive.

    line 40

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

Subagents

<!-- fast-agent-subagents -->

Project Structure & Module Organization

  • packages/app: MCP server plus management web UI. Server code lives in packages/app/src/server, UI in packages/app/src/web, and tests in packages/app/test.
  • packages/mcp: shared MCP tools/library consumed by the server. Source is in packages/mcp/src, with tests in packages/mcp/test and a few *.test.ts files co-located in src.
  • packages/e2e-python: Python-based end-to-end harnesses and fixtures.
  • Root-level docs and support files live in docs/, docs-internal/, scripts/, spec/, and Dockerfile.

Build, Test, and Development Commands

  • pnpm install: install workspace dependencies (Corepack-managed pnpm).
  • pnpm build: build all workspace packages.
  • pnpm dev: watch the MCP package and run the server with HMR.
  • pnpm start: start the production server from packages/app.
  • pnpm lint, pnpm typecheck, pnpm format, pnpm test: run repo-wide checks.
  • Package-specific tests: pnpm -C packages/app test or pnpm -C packages/mcp test.
  • Full local pipeline: pnpm run buildrun (clean, build, lint, test, start).

Coding Style & Naming Conventions

  • TypeScript ESM across packages.
  • Prettier enforces tabs (useTabs: true, tabWidth: 2), semicolons, single quotes, and printWidth: 120.
  • ESLint rules are strict in packages/mcp and server code (no any, consistent type imports, prefer interface type definitions).
  • Tests use .test.ts or .spec.ts naming.

Testing Guidelines

  • Unit/integration tests run with Vitest in both packages/app and packages/mcp.
  • Run all tests with pnpm test or package-specific commands above.
  • No explicit coverage gate is configured; add tests for new tools, transports, or formatting logic.

Commit & Pull Request Guidelines

  • Recent history mixes merge commits and conventional-style messages like chore: release vX; no enforced convention.
  • Keep commits small and descriptive; add a scope when it clarifies the area (app, mcp).
  • PRs should include a concise summary, test results, linked issue (if applicable), and screenshots for UI changes under packages/app/src/web.

Security & Configuration Tips

  • Provide auth via environment variables (DEFAULT_HF_TOKEN, HF_TOKEN); do not commit secrets.
  • TRANSPORT controls server mode (stdio, streamableHttp, streamableHttpJson). Document any new env vars in README.md.

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.