maverick-mcp
AGENTS.md701 starsChanged 2 months agoMITView on GitHub
This is the canonical agent entry point for every assistant. Compatibility entry points refer here; there is no separate vendor-specific guidance. Keep this file a table of contents, not an encyclopedia -- durable detail lives in docs/, mapped by docs/INDEX.md. MaverickMCP is a personal-use FastMCP server for local financial analysis in any MCP client. It provides stock data, technical analysis, screening, portfolio tracking, backtesting, research, watchlists, a trade journal, and a risk dashboard. This project is for educational and informational…
- Reads credentials
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
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 5
Keep this file a table of contents, not an encyclopedia -- durable detail lives in docs/, mapped by docs/INDEX.md.
- Very specific: line 48
Keep this file concise. Treat it as the table of contents for future agents.
- Very specific: line 83
Use uv run pytest ... for focused test runs.
- Distinctive: line 89
Use Ruff formatting and linting.
- Distinctive: line 90
Keep exports typed and avoid broad rewrites.
- Very specific: line 91
Prefer existing domain layering (types -> config -> data -> service -> tools) over new abstractions.
- Very specific: line 94
Use Decimal for financial arithmetic.
- Distinctive: line 112
Add or update focused tests when behavior changes.
- Distinctive: line 113
Avoid real network calls in unit tests.
- Distinctive: line 115
Use the docs catalog checker when moving, deleting, or adding Markdown/text files.
- Very specific: line 120
Do not commit .env, API keys, database dumps, cache artifacts, or generated secrets.
- Very specific: line 122
No API key is required for core tools (market data, technical analysis, screening, portfolio): yfinance is the default data source.
- Distinctive: line 127
Keep authentication/billing complexity out of the local personal-use path unless a future plan explicitly changes that scope.
- Distinctive: line 129
Do not reintroduce auth, billing, or hosted SaaS scope without an explicit plan.
- Distinctive: line 131
Do not use assistant-specific configuration files as the repository source of truth.
- Very specific: line 133
Keep documentation changes cataloged in docs/CATALOG.md.
≈ “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
This is the canonical agent entry point for every assistant. Compatibility
entry points refer here; there is no separate vendor-specific guidance.
Keep this file a table of contents, not an encyclopedia -- durable detail lives
in docs/, mapped by docs/INDEX.md.
Project Overview
MaverickMCP is a personal-use FastMCP server for local financial analysis in any MCP client. It provides stock data, technical analysis, screening, portfolio tracking, backtesting, research, watchlists, a trade journal, and a risk dashboard.
This project is for educational and informational use only. It is not financial advice, tax advice, or a trading system.
As of v1.0.0, the entire server lives in maverick/. The legacy
maverick_mcp/ package was deleted at the v1.0 cutover. If you are carrying
config or a database forward from a pre-v1.0 install, read
docs/runbooks/migrating-to-v1.md.
Project Structure
maverick/platform/: the shared seam -- database, cache, HTTP resilience, telemetry, and the BYOK LLM factory. The only place that reads env vars.maverick/market_data/,technical/,screening/,portfolio/: core domains, eachtypes.py->config.py->data.py->service.py->tools.py. Import contracts and structural tests enforce that layering.maverick/backtesting/,research/: optional-extra domains ([backtesting],[research]); each degrades to zero registered tools with one warning when its extra is absent.maverick/server/: FastMCP assembly (assembly.py), the CLI entry point (app.py), and prompts (prompts.py). Nothing importsmaverick.server.tests/: primary pytest suite, mirroring the domain tree plustests/structure(file-size, env-access, naming, and dependency rules),tests/server, andtests/evals.scripts/: local utility scripts (the.mcpbbundle builder and the indicator golden-fixture recorder).tools/:check_docs_catalog.py, the checker behindmake docs-check.evals/: tool-surface trace harness and local review UI for error analysis. Readevals/tool_surface/README.mdbefore anymake eval-*target.docs/: canonical project documentation and catalog.
Documentation Map
Keep this file concise. Treat it as the table of contents for future agents.
Durable detail belongs in docs/.
docs/INDEX.md: start here for the documentation structure.docs/CATALOG.md: status of current, historical, archived, and deleted docs.ARCHITECTURE.md: package layout, service boundaries, and data flow.docs/runbooks/mcp-clients.md: transports and per-client MCP setup.docs/runbooks/database-setup.md: SQLite/PostgreSQL setup.docs/runbooks/migrating-to-v1.md: config/database migration from pre-v1.0.docs/features/portfolio.md: portfolio persistence and cost-basis behavior.docs/features/deep-research.md: research agent and provider behavior.docs/api/backtesting.md: backtesting API reference.docs/testing/README.md: canonical testing guide.docs/references/llm-documentation-hygiene.md: documentation hygiene rules.docs/exec-plans/tech-debt-tracker.md: known debt, one line each. Add a line when you find debt; remove the line when you remove the debt.
Build, Test, And Development Commands
uv sync --extra dev # core + dev tooling
uv sync --extra dev --extra backtesting --extra research # full tool surface
make dev # Streamable HTTP server on port 8003
make dev-stdio # STDIO transport (any local MCP client)
make stop
make test # Unit tests only by default
make test-all # Includes integration/slow/external markers
make lint
make typecheck
make check
make docs-checkUse uv run pytest ... for focused test runs. The default pytest config
excludes integration, slow, and external tests.
Coding Style
- Python 3.12+.
- Use Ruff formatting and linting; line length is 88.
- Keep exports typed and avoid broad rewrites.
- Prefer existing domain layering (
types -> config -> data -> service -> tools) over new abstractions; runuv run lint-importsafter touching imports. - Use
Decimalfor financial arithmetic; do not introduce float-based cost basis or P&L calculations.
MCP Transport Defaults
- STDIO: the default (
--transport stdio), and the right choice for a single local client. Start withmake dev-stdio. - Streamable HTTP:
make devserveshttp://localhost:8003/mcp. The endpoint has no trailing slash --/mcp/returns a 307 redirect that breaks clients which do not follow redirects onPOST. - The HTTP transport binds
127.0.0.1;--host 0.0.0.0is required for LAN access and exposes an unauthenticated tool surface. - SSE does not exist in this server; do not add it back without an explicit design decision.
- Per-client config belongs in
docs/runbooks/mcp-clients.md, not here.
Testing Guidelines
- Add or update focused tests when behavior changes.
- Avoid real network calls in unit tests.
- Mark external-provider tests with
external; require explicit API keys. - Use the docs catalog checker when moving, deleting, or adding Markdown/text files.
Safety And Configuration
- Do not commit
.env, API keys, database dumps, cache artifacts, or generated secrets. - No API key is required for core tools (market data, technical analysis,
screening, portfolio):
yfinanceis the default data source. - Optional keys:
EXA_API_KEY(research web search) andLLM_PROVIDER+LLM_API_KEY+LLM_MODEL(BYOK LLM for research andbacktesting_parse_strategy). See.env.examplefor the full list. - Keep authentication/billing complexity out of the local personal-use path unless a future plan explicitly changes that scope.
- Do not reintroduce auth, billing, or hosted SaaS scope without an explicit plan.
- Do not use assistant-specific configuration files as the repository source of truth.
- Keep documentation changes cataloged in
docs/CATALOG.md; runmake docs-checkafter adding, moving, or deleting docs.
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.

