scholar-mcp
AGENTS.md2 starsChanged 2 months agoMITView on GitHub
Scholarly papers, patents, books, standards and PDF conversion Pull-request titles are enforced, not merely encouraged. A squash merge takes the PR title as the commit subject, so CI's PR Title job checks it against the type list above and fails the CI Success aggregate when it does not match. This is not style policing: knope computes versions and writes CHANGELOG.md from those subjects, and it silently ignores a subject whose type it does not count — no fallback heading, no…
- Commits and pushes
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,736 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 repository15 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- applying-template-updatesSkill
- authoring-issues-prsSkill
- config-contractSkill
- designing-tool-outcomesSkill
- logging-standardSkill
- releasingSkill
- repository-protectionSkill
- researching-referencesSkill
- roadmappingSkill
- self-reviewingSkill
- tool-registrationSkill
- writing-model-facing-textSkill
- writing-release-notesSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 110
Every PR must pass all of the following before merge.
- Distinctive: line 147
Keep functions short and single-purpose.
- Distinctive: line 190
Always fetch both before declaring a review round complete.
- Distinctive: line 196
Every issue, PR, and code change must consider documentation impact.
- Very specific: line 231
Read docs/design/roadmap.md before planning.
- Distinctive: line 253
If a conflict marker appears in a copier-update bot PR, the conflict itself often signals a template bug — investigate whether the …
- Very specific: line 262
Write tools tagged tags={"write"}, hidden via mcp.disable(tags={"write"}) in read-only mode
- Very specific: line 263
All tools have MCP annotations (readOnlyHint, destructiveHint, openWorldHint)
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Scholar MCP
Scholarly papers, patents, books, standards and PDF conversion
Design
<!-- DOMAIN-START --><!-- Describe your service's design here. Kept across copier update. --><!-- DOMAIN-END -->Project Structure
<!-- DOMAIN-START -->src/scholar_mcp/
server.py -- FastMCP server factory (make_server) + auth wiring
config.py -- env var loading; add domain config fields here
cli.py -- CLI entry point (serve command)
_server_deps.py -- template lifespan + get_service() DI (template-owned)
domain.py -- Service: every upstream client, the cache, enrichment
tools.py -- MCP tools; dispatches to the _tools_* category modules
resources.py -- MCP resources; add domain resources here
prompts.py -- MCP prompts; add domain prompts here
_rate_limiter.py -- Rate limiter, retry, try-once + RateLimitedError<!-- DOMAIN-END --><!-- ===== TEMPLATE-OWNED SECTIONS BELOW — DO NOT EDIT; CHANGES WILL BE OVERWRITTEN ON COPIER UPDATE ===== -->Conventions
- Python 3.11+
uvfor package management,rufffor linting/formatting (line length 88)hatchlingbuild backend- Conventional commits, one type from
build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test— optionally scoped (feat(search): ...) and with!for a breaking change. Onlyfeat,fix, and the!marker drive releases:featcuts a minor,fixa patch,!a major. Every other type —perfincluded — cuts nothing and never reachesCHANGELOG.md; a performance change that must ship on its own is either honestly afix:(it fixes a performance defect) or released with Release Prepare's explicitoverride_versioninput. - Google-style docstrings on all public functions
logging.getLogger(__name__)throughout, noprint(); messages areevent_name key=%s(see thelogging-standardskill), andtests/test_logging_standard.pyfails on any first-party call that is not- Type hints everywhere
- Tests:
pytestwith fixtures intests/fixtures/
Pull-request titles are enforced, not merely encouraged. A squash merge
takes the PR title as the commit subject, so CI's PR Title job checks it
against the type list above and fails the CI Success aggregate when it does
not match. This is not style policing: knope computes versions and writes
CHANGELOG.md from those subjects, and it silently ignores a subject whose
type it does not count — no fallback heading, no entry, no warning. That
silent-drop class is exactly what the gate exists for: it keeps the history
parseable and the accepted set deliberate. The changelog itself carries three
sections per release — Breaking Changes first, then Features, then Bug
Fixes — fed only by !/feat/fix subjects; the richness for everything
else lives on the docs/releases/ notes page, not in the changelog.
Retitling is enough to clear a failure — the job reads the current title from the API, so re-running it after a retitle needs no push.
Reverts are the one accepted title with a caveat. Revert "...", the
shape git revert and GitHub's revert button generate, passes: it is the
ecosystem's convention, and Conventional Commits deliberately leaves reverts
unspecified. But neither revert form reaches CHANGELOG.md — knope
counts only feat/fix/!, so revert: ORIGINAL SUBJECT is just as
changelog-invisible as the quoted form. The job says so with a warning
annotation rather than letting you find out at release time. The revert is
narrated on the docs/releases/ page instead, whose research runs off merged
pull requests and linked issues rather than commit subjects.
The accepted set lives in scripts/check_pr_title.py. That list, the
knope-counted subset (feat/fix/!), and this section's prose are checked
against each other by tests/test_commit_conventions.py, so no one of the
three can drift alone.
Skills
Detailed guidance lives in skills under .agents/skills/ (portable; Claude Code reaches them through .claude/skills/ symlinks). They load only when invoked, so invoke them explicitly:
releasing— before any release, release-candidate, unstable-channel, plugin-channel, or release-notes work.config-contract— before adding a config field, env var, Dockerfile extension point, mcpb install-screen entry, or release-manifest stamp.logging-standard— before adding or changing a logging call.tool-registration— before adding, renaming, or documenting an MCP tool,get_server_info, icons, or the public import surface.writing-model-facing-text— before writing or changing a tool, parameter, resource or prompt description, or a server-instructions snippet.designing-tool-outcomes— before writing or changing a tool that can fail, refuse, find nothing or hit a conflict: what it returns, raises and logs in each case.repository-protection— before changing rulesets, required checks, or the bootstrap workflow.authoring-issues-prs— when filing an issue or opening a PR.self-reviewing— before opening a PR, marking one ready, or pushing further commits to a branch with an open PR: self-review the cumulative diff.applying-template-updates— when working through the weekly template update PR (copier/updatebranch) or after runningcopier update.writing-release-notes— when drafting adocs/releases/page.roadmapping— when charting, refining or revisiting epics and release packages; before planning work that spans PRs.researching-references— when a change depends on how something outside the repo behaves (a markdown dialect, git, a file format, a vendor API) anddocs/design/reference/has no current page for it.
Project-owned skills follow the same shape: a directory under .agents/skills/ plus a relative symlink in .claude/skills/.
Breaking Changes and the ! Marker
The release version is computed by knope from commit subjects and lands in a reviewed release PR, so the ! marker (or BREAKING CHANGE: footer) is the major-version decision — apply it deliberately, not by habit; the release-PR review is where a mis-typed ! gets caught, but the reviewer should never have to. A change is breaking only if it breaks one of two surfaces:
- Operator surface — an environment variable, config file, CLI flag, deployment layout, or on-disk state format a human must change to upgrade.
- Public library interface — anything importable from
scholar_mcpthat a downstream Python consumer uses. A mechanical guard for this tier is tracked at pvliesdonk/fastmcp-server-template#352.
A change to the MCP surface, meaning the tools, resources and prompts a client discovers over the protocol (their names, parameters, schemas and payload shapes, and adding or removing any of them), is not breaking on its own. The LLM client is stateless and re-discovers the surface over the protocol on connect, so a server restart resolves it with no user action.
Two refinements:
- Re-discovery covers a component's shape, not its semantics. A tool, resource or prompt that keeps its shape but changes what it does can still break operator automation, prompts, or skills. If only the MCP surface changed and the previous behaviour is still reachable (additive / dual-mode), the change is not breaking; if the old behaviour is gone, treat it as breaking even though the schema re-discovers cleanly.
- Assess against the last stable release, not the previous commit. A change to something introduced in the same unreleased range breaks nothing a user has, and does not earn a
!. When a feature and its rework land in one release cycle, only the net effect on the released surface counts. Sanity-check any commit carrying!before it merges: ifgit tag --containson the commit that introduced the surface comes back empty, the surface never shipped and the!is spurious.
The two-part test: (1) does an operator or a library consumer of the last stable release have to change something? → breaking. (2) If only the MCP surface changed, is the previous behaviour still reachable? → not breaking; if it is gone, breaking.
Hard PR Acceptance Gates
Every PR must pass all of the following before merge. Do not open or push a PR until these are green locally:
- CI passes —
uv run pytest -x -qall tests pass. CI runs the full suite on required Python 3.11–3.14, collecting coverage only on Python 3.14. Both CI test commands include--durations=20to report slow tests. - Lint passes — run in this exact order:
uv run ruff check --fix .thenuv run ruff format .then verify withuv run ruff format --check .. Always run format after check --fix because check --fix can leave files needing reformatting. - Type-check passes —
uv run mypy src/ tests/reports no errors - Patch coverage ≥ 80% — CI's
coverage/patchstatus (diff-cover) measures only lines added/changed in the PR diff; SonarQube Cloud's quality gate holds new code to the same floor. Runuv run pytest --cov=src/scholar_mcp --cov-report=term-missingand verify new code is exercised. Use the path form for--cov: a dotted module target (e.g.--cov=scholar_mcp.config) makes coverage.py import the module speculatively, which leaves an orphaned beartype import hook behind and aborts the whole session at conftest load. Add tests for every uncovered branch before pushing. - Structural quality (diff) passes — new/changed code must introduce no new structural violations (complexity, too-many-*, security). Enforced on the diff only, so pre-existing code is never blocked. Run before pushing:
The script derives its compare branch (nearest ofbash scripts/structural_gate.shorigin/main,origin/release/*andorigin/integration/*; override withSTRUCTURAL_GATE_BASE) and runsdiff-quality --violations=ruff.check --options="--extend-select=C901,PLR0911,PLR0912,PLR0913,PLR0915,S" --fail-under=100against it.# noqa: C901(etc.) with a one-line justification is the escape hatch for genuinely irreducible new code. - Docs updated —
README.mdanddocs/**reflect any user-facing changes in the same commit - Manifest version lockstep —
server.json,.claude-plugin/plugin/.claude-plugin/plugin.json, and.claude-plugin/plugin/.mcp.jsonmust all carry the same version: the latest stable release. A stable release PR stamps them atomically (knope invokesscripts/stamp_manifests.py); rc release PRs deliberately leave them untouched, because the versions they name are only published for stable releases. Manual touches require updating all three.
Pre-commit Hooks
This project ships a .pre-commit-config.yaml that runs ruff (check + format), mypy on src/ and tests/, gitleaks secret scanning, and standard whitespace/YAML/JSON checks — aligned with the ci.yml lint/typecheck/secrets jobs so a clean pre-commit run implies a clean CI lane.
- Install once per clone:
uv run pre-commit install. - Run on demand before pushing:
uv run pre-commit run --all-files. A green run is a precondition for gates #2 and #3 above. - Structural gate runs at push time: the
structural-diff-gatehook (pre-push stage) runsscripts/structural_gate.shautomatically.uv run pre-commit installwires it viadefault_install_hook_types. A clean local push implies a clean CIstructurejob — CI runs the same script, pinning the compare branch to the PR's actual base, while the hook derives it (nearest oforigin/main,origin/release/*andorigin/integration/*), so backport and integration-child branches are measured against the right base locally too. - Template conformance runs at push time: the
template-conformancehook (pre-push stage) fails a push that adds content outside a sentinel block in a filecopier updatere-renders, compared with the branch's base. Move the content into the block the file declares. Its one sanctioned skip is drift a Decay issue tracks:SKIP=template-conformance git push. - Never bypass with
--no-verify. A failing hook means the same check will fail in CI; fix the underlying issue rather than silencing it.
Domain-specific additions (shellcheck, yamllint, project-specific linters, additional file checks) belong between the DOMAIN-HOOKS markers at the end of the config, never outside them; hooks inside that block on top of the shipped defaults survive copier update.
Structural health
The structural gate stops new debt; these practices and the advisory audit keep existing debt visible.
Local-shape rules (checkable while you write):
- Keep functions short and single-purpose; if a function needs a comment to explain a section, that section is a function.
- Nesting beyond ~3 levels is a smell — extract or invert/early-return.
- Five parameters is the ceiling; past it, pass an object or split the function.
- A new responsibility is a new collaborator, not a longer class. When a class grows a second reason to change, that reason belongs in its own unit.
Advisory audit (on demand — run before substantial work in an unfamiliar area, or when about to touch a flagged module):
uv run --with radon python -m radon cc -s -n C src/ # complexity hotspots (grade C+)
uv run --with radon python -m radon mi -s src/ # maintainability index
uv run --with vulture vulture src/ # dead-code candidatesEach analyzer is optional and degrades gracefully if absent. vulture over-reports on importable/decorated/framework-registered code — confirm before deleting and keep a whitelist.
When you notice decay outside the current change's scope — a god class forming, a dead branch, a leaking abstraction, a name that no longer matches behaviour, or an audit hotspot — do not fix it inline (scope creep) and do not pass over it silently. Open an issue using the Decay form (.github/ISSUE_TEMPLATE/decay.yml): What / Where / Why it compounds / Suggested direction.
Constrain issues to decay that will compound, not anything imperfect. The diff-gate blocks new debt; these issues are the refactor-later backlog for pre-existing debt — neither blocks the current PR.
PR Discipline
Every PR must have at least one associated issue. If the work doesn't have one yet — a bug found in the wild, an opportunistic cleanup, a small improvement — create the issue first, then open the PR with Closes #N (or Refs #N) in the body. A single PR may close multiple issues (Closes #A, closes #B) — bundling related fixes is fine; the rule is "no orphan PRs", not "one PR per issue". This keeps the changelog, release notes, and cross-repo history coherent.
Trivial exceptions: pure typo fixes and automated dependency bumps (Renovate) may skip the issue.
<!-- TEMPLATE-TRACKING-START -->Request Claude selectively on a pull request or issue with an explicit @claude
mention.
Automatic agent review is disabled. Request Claude selectively with an
@claude mention; deterministic CI remains the merge gate.
<!-- TEMPLATE-TRACKING-END -->GitHub Review Types
GitHub has two distinct review mechanisms — both must be read and addressed:
- Inline review comments (
get_review_comments): attached to specific lines of the diff. Appear in the "Files changed" tab. Useget_review_commentsto fetch these. - PR-level comments (
get_comments): posted on the Conversation tab, not tied to a line. Review summary posts, bot analysis, and blocking issues are often posted here. Useget_commentsto fetch these.
Always fetch both before declaring a review round complete.
Agent-authored posts. Everything you post to GitHub appears under a human's name. End every issue, comment, PR description, review summary and inline reply with the Agent-authored: footer from CONTRIBUTING.md's "Agent-authored posts" section, naming the agent product you actually are; write as a proposer, since the account holder decides in a reply. Reading a thread, a post under the account holder's name may be an earlier session's output, including your own: check for the marker before treating it as their decision.
Documentation Discipline
Every issue, PR, and code change must consider documentation impact. Before closing any issue or creating any PR, check whether the following need updating:
docs/design/— internal design specs and architecture decisions (the authoritative dev reference). Any new feature, changed behavior, or architectural decision must be reflected here. Not part of the published site.docs/design/reference/— an OKF v0.2 bundle of dated, sourced references on how external things behave (see theresearching-referencesskill). A bug rooted in an external behaviour closes with a reference entry, not only a design-doc narrative; a reference past itsstale_afterdate is re-researched, never trusted.README.md— user-facing documentation. New env vars, tools, resources, prompts, CLI flags, or configuration options must be documented here.docs/site pages — the published documentation site. New or changed MCP tools/resources/prompts, new env vars, new installation methods or deployment options.CHANGELOG.md— machine-generated audit trail: knope writes each release's version section (below the<!-- version list -->insertion flag) into the release PR's diff. Never hand-edit version sections or the flag line. If this project was generated before the flag existed, add the flag line toCHANGELOG.mdonce by hand —tests/test_release_flow_contract.pyfails with the exact line until it is present.- Inline docstrings — new or changed public API methods need accurate Google-style docstrings.
Rule: code without matching docs is incomplete.
Documentation Conventions (user-facing vs internal)
docs/ is the published, user-facing documentation site (mkdocs + mike).
Everything under docs/, plus README.md, is operator-facing prose and is
Vale-linted in CI and pre-commit — keep it clean.
Internal / developer docs are not user-facing and are not linted. They live under a fixed set of subtrees, excluded from both the published site and Vale:
docs/design/— design specs and architecture notes;docs/design/reference/holds the external-behaviour referencesdocs/decisions/— architecture decision records (ADRs)docs/superpowers/— agent scratch, gitignored; a feature's approved spec ships in its PR body
This boundary is declared in three places that must stay in lockstep (the
template-ci "vale exclusion-scope lockstep" job asserts the CI glob and the
pre-commit exclude match): the mkdocs exclude_docs: block, the vale CI
step's glob: input (!docs/{superpowers,design,decisions}/** — one glob
with brace alternation, because Vale honors only a single --glob), and
the - id: vale pre-commit hook's exclude: regex
(^docs/(superpowers|design|decisions)/). The set is fixed by convention — do
not add per-project exclusions; put internal docs in one of the subtrees above.
Roadmap
Read docs/design/roadmap.md before planning; update its argument when direction changes.
Epics are parent issues with native sub-issues; packages are ordinal-named milestones for one release cut.
The roadmapping skill defines refinement, evidence and package membership. GitHub owns status; the index owns the argument.
<!-- TEMPLATE-TRACKING-START -->Shared Infrastructure
Shared infrastructure (auth providers, middleware stack, logging bootstrap, event store factory, CLI scaffolding, release pipeline, Docker entrypoint, nfpm packaging, mcpb bundle) lives upstream in two places:
fastmcp-pvl-core— the Python library that providesServerConfig, auth builders, middleware helpers, and themake_serve_parser/configure_logging_from_env/run_http/normalise_http_pathCLI helpers.fastmcp-server-template— the copier template this project was generated from. Ships the CI/release workflows,knope.toml,Dockerfile,packaging/nfpm.yaml,packaging/mcpb/*,scripts/stamp_manifests.py, server.py skeleton, and this very section of AGENTS.md.
Fixes and improvements to shared code land in those repos and propagate here via copier update against the template's latest tag — run manually or via the weekly .github/workflows/copier-update.yml cron. Starter files listed in _skip_if_exists (e.g. packaging/mcpb/*, the tools.py / resources.py / prompts.py / domain.py scaffolds, CHANGELOG.md, LICENSE) are written once and require manual reconciliation on template updates; AGENTS.md, README.md, .pre-commit-config.yaml, scripts/stamp_manifests.py, compose.yml, Dockerfile and pyproject.toml are deliberately not among them — all seven are re-rendered on update, and only content inside their sentinel blocks survives (DOMAIN-START / DOMAIN-END in the two Markdown files, DOMAIN-HOOKS in the pre-commit config, DOMAIN-MANIFESTS-HELPERS / DOMAIN-MANIFESTS in the stamp script, the four DOMAIN-COMPOSE-* blocks in the compose file, the four DOCKERFILE-* blocks in the Dockerfile, and PROJECT-DEPS / PROJECT-EXTRAS / PROJECT-LICENSE / PROJECT-CLASSIFIERS / PROJECT-LICENSE-CLASSIFIER / PROJECT-UV / PROJECT-RUFF-IGNORES in pyproject.toml) — review _skip_if_exists in the template's copier.yml if you need to force-sync a file. Content written into a re-rendered file outside its sentinel blocks is drift, not a customisation: uv run --script scripts/check_template_conformance.py lists every such line against the pinned template version. Domain-specific code (tools, resources, prompts, and the fields and logic inside the CONFIG-FIELDS-START / CONFIG-FIELDS-END, CONFIG-FROM-ENV-START / CONFIG-FROM-ENV-END, and CONFIG-VALIDATE-START / CONFIG-VALIDATE-END sentinels) stays in this repo.
Contributing fixes upstream
See CONTRIBUTING.md for the three-tier routing (library to fastmcp-pvl-core, template to fastmcp-server-template, domain to this repo), the issue/PR discipline, and the uncertainty rule. CONTRIBUTING.md is the single source; this section is a pointer.
The provider-neutral release-notes skill lives at .agents/skills/writing-release-notes/SKILL.md; invoke it explicitly when preparing or revising release narrative. Claude Code reaches the same skills through .claude/skills/ symlinks.
The authoring-issues-prs skill (.agents/skills/authoring-issues-prs/SKILL.md, reachable by Claude Code via .claude/skills/) fires when filing issues or PRs: it walks the routing, picks the issue form, and performs the follow-up steps forms cannot (native sub-issue links for epics, the release milestone or ships-atomically label). The skill is template-owned and re-rendered on copier update; project-specific authoring conventions belong inside its DOMAIN-AUTHORING sentinel block.
If a conflict marker appears in a copier-update bot PR, the conflict itself often signals a template bug — investigate whether the template's version needs fixing before resolving locally.
<!-- TEMPLATE-TRACKING-END --><!-- ===== TEMPLATE-OWNED SECTIONS END ===== -->Key Design Decisions
<!-- DOMAIN-START -->- Library is sync; MCP layer uses
asyncio.to_thread()for blocking calls - Write tools tagged
tags={"write"}, hidden viamcp.disable(tags={"write"})in read-only mode - All tools have MCP annotations (
readOnlyHint,destructiveHint,openWorldHint) - Auth:
build_auth(config.server)resolved in the template'smake_server()(MultiAuth when both bearer and OIDC are configured) - Template shape is leading.
server.py,cli.pyand_server_deps.pystay byte-identical to the render outside their sentinel blocks; scholar's wiring lives inDOMAIN-WIRING/DOMAIN-UPSTREAM/DOMAIN-COMMANDS, and its lifecycle indomain.Service, whosestart()registers each resource's cleanup on anAsyncExitStack. _ENV_PREFIXinconfig.pycontrols all env var names — change once, affects everything- Background work runs on pvl-core Jobs. There is one polling contract,
get_job_result; the bespokeTaskQueueis gone (#264). - Jobs: every tool whose work can run long registers through the jobs layer and must return
dict[str, Any]— a-> strannotation makes the promotedJobHandlefail the client's output-schema check. S2-backed tools useregister_s2_tool; other long-running tools useregister_long_running_tool(mcp, jobs, ...). The exceptions are tools that cannot run long (get_sync_status,get_book_excerpt,recommend_books), registered withmcp.tool(...)directly. Every tool ends through pvl-core'stool_boundary, whichtests/test_tool_outcomes.pyenforces:register_long_running_toolandregister_job_toolsapply it themselves,register_s2_toolwraps its registered wrapper, and a directmcp.tool(...)registration wraps the function (mcp.tool(...)(tool_boundary(fn))). An exception the model should act on is aToolError(msg, log_level=logging.INFO)or an{"error": ...}payload; anything else reaches the model as the boundary's fixed fault message. OneJobsper server is built inregister_toolsfrom the configmake_serverbound (config_for(mcp)) and passed to each category module;register_job_toolsregisters the singleget_job_resultpoller. Elapsed time triggers ordinary promotion. An S2 throttle triggers immediate deferral of the same running body. A cache hit needs no special case. - EPO reaches the network through
_run_epo(_tools_patent.py), which wrapswith_epo_retryand turns a surviving throttle or an exhausted quota into aretryable-tagged payload. Backoff waits must outlast_THROTTLE_CACHE_TTL_S, or the retry re-reads the cached traffic light instead of asking EPO.EpoQuotaExhaustedErroris never retried. - Tests pick the branch with a fixture, not by sleeping:
slow_jobs(30s deadline) for inline results,jobs(0.05s) for promotion. Both are intests/conftest.py, which also shrinks the EPO and S2 backoffs so no test waits out a real ladder. - An async test never calls
make_server(). It takes theserverfixture (orclient, which wraps it) fromtests/conftest.py; both are synchronous at the point of construction, because from pvl-core 6finalize_instructionsrefuses to run inside a running event loop. Env the server reads goes through indirect parametrisation —@pytest.mark.parametrize("server", [{...}], indirect=True, ids=["..."])— notmonkeypatchin the test body, which would run too late.tests/test_server_construction.pyenforces this, following one level of helper indirection. - A tool's caller-facing guidance goes in the docstring body, above the first section header. FastMCP publishes the summary and body but strips
Args:,Returns:andExamples:, so a note placed under any of them never reaches the model.tests/test_jobs_wiring.pyasserts the contract on the description as a client receives it. - Converted document text is paged at the MCP boundary. The complete text stays cached, while
page_text()returns at most 20,000 characters by default frommarkdownorfull_text, plus offsets and counts.max_chars=nullis the explicit compatibility path for clients that can accept the complete response. Seedocs/design/document-text-responses.md.
<!-- DOMAIN-END -->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.

