Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/paulieb89/pinescript-mcp/claude-mdgit clone --depth 1 https://github.com/paulieb89/pinescript-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/paulieb89/pinescript-mcp/claude-md)<a href="https://agentmods.dev/instructions/paulieb89/pinescript-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/paulieb89/pinescript-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00981 | $0.00981 |
| Opus 5 | $0.00491 | $0.00491 |
| Sonnet 5 | $0.00196 | $0.00196 |
| Haiku 4.5 | $0.00098 | $0.00098 |
Grade C, and why
pinescript-mcp CLAUDE.md scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf dist/ && uv build && uvx twine upload dist/* # Publish PyPI How it starts
The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md - pinescript-mcp
MCP server providing Pine Script v6 documentation to AI assistants.
PyPI: https://pypi.org/project/pinescript-mcp/ Fly.io: https://pinescript-mcp.fly.dev/mcp
Key Files
src/pinescript_mcp/server.py- All MCP tools and middleware. Tool docstrings = AI-visible descriptionspyproject.toml- Package metadata, dependencies.bumpversion.toml- Version sync (pyproject.toml, init.py, server.json, mcp.json)fly.toml- Fly.io deployment config +[metrics]for Prometheus scraping
.gitignore - Files exist that you may not see;
- .claude/
- reddit/
- dist/
MCP Surface (10 tools, 3 resources, 3 prompts)
Tools (8 direct + 2 synthetic)
| Tool | Purpose |
|---|---|
resolve_topic |
Fast lookup for exact API terms (ta.rsi, repainting) |
search_docs |
Search docs — multi-word queries use AND logic |
list_docs |
List all available docs |
list_sections |
List ## headers in a doc (navigate large files) |
get_doc |
Read a specific doc file (limit/offset) |
get_section |
Get section by markdown header |
get_functions |
List valid Pine v6 functions by namespace |
validate_function |
Check if function name is valid (known replacements for common mistakes) |
list_prompts |
Synthetic — list prompt templates |
get_prompt |
Synthetic — render a prompt with arguments |
Resources
| URI | Content |
|---|---|
docs://manifest |
START HERE — LLM routing guide for Pine Script questions |
docs://functions |
pine_v6_functions.json allowlist |
docs://{path*} |
Any doc file (e.g. concepts/timeframes.md) |
Prompts
| Prompt | Purpose |
|---|---|
debug_error |
Analyze Pine Script compilation errors |
convert_v5_to_v6 |
Guide v5 → v6 migration |
explain_function |
Explain a Pine Script function in detail |
Commands
uv run python -m pinescript_mcp # Run locally (stdio)
uv run python -m pinescript_mcp --http # Run locally (HTTP)
uvx bump-my-version bump patch # Version bump
rm -rf dist/ && uv build && uvx twine upload dist/* # Publish PyPI
fly deploy # Deploy Fly.io
uvx mcp-inspector uvx pinescript-mcp # Test with inspector
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 84 lines · 981 tokens per session scan C b6d8a8c4f51f
pinescript-mcp CLAUDE.md is an instructions file published in the GitHub repository paulieb89/pinescript-mcp (9 stars, last pushed 8d ago), licensed MIT. It adds 981 tokens to every session, about $0.0049 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
MindTrain AGENTS.md
Instructions for shigella520/MindTrain, covering repository instructions, mindtrain target architecture, training and content integrity, safety and integrity and fast release workflow.
longbridge-mcp CLAUDE.md
Claude Code instructions for longbridge/longbridge-mcp, covering code formatting, code style, generic bounds, imports and comments.
swiss-statistics-mcp CLAUDE.md
Claude Code instructions for malkreide/swiss-statistics-mcp, covering claude.md, teil 1 — portfolio-konventionen, vor der arbeit, tests and wenn etwas rot ist.
uk-due-diligence-mcp AGENTS.md
Instructions for paulieb89/uk-due-diligence-mcp, covering agents.md — uk-due-diligence-mcp, repo shape, deploy, version bump and standard routes (must always be present).
TradingGoose-Studio AGENTS.md
AGENTS.md instructions for TradingGoose/TradingGoose-Studio, covering agents, ground rules, planning, engineering and validation.
anki-mcp-server CLAUDE.md
Claude Code instructions for nailuoGG/anki-mcp-server, covering claude.md, repository overview, development commands, build & development and install dependencies.