screener-mcp: Instructions file for Codex

AGENTS.md

screener-mcp AGENTS.md is an instructions file for Codex, OpenCode from LogeshR15/screener-mcp. It costs 2,126 tokens per session, scanned A, original, MIT.

A set of project rules for coding agents working on screener-mcp, an MCP server that gives language-model clients live Indian equity data. It covers setup, commands, code structure, testing, and response rules.

In plain words
What is it for?
Use it when installing dependencies, editing the server or its tools, running tests and checks, or preparing a change for this project.
Why use it?
It gives agents one place to check the repository's required workflow and hard constraints. This helps avoid unsupported changes and incomplete verification.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is LogeshR15/screener-mcp's own configuration. It tells Codex and OpenCode how to work on screener-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything screener-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to LogeshR15/screener-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/LogeshR15/screener-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/LogeshR15/screener-mcp

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for screener-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/logeshr15/screener-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/logeshr15/screener-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/logeshr15/screener-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/logeshr15/screener-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for screener-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/logeshr15/screener-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/logeshr15/screener-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,126 This file is loaded in full into every session.
When invoked 2,126 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.02126 $0.02126
Opus 5.5 $0.00850 $0.00850
Sonnet 5.5 $0.00425 $0.00425
Haiku 4.5 $0.00213 $0.00213

Measured 2d ago against content hash 5cf02d71e4d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

screener-mcp AGENTS.md scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Guidance for AI coding agents (Claude Code, Codex, Cursor, Copilot, Aider, etc.) working on screener-mcp: an MCP server that gives LLM clients live Indian equity data from Screener.in, NSE, Yahoo Finance and Google News.

Human contributors should read CONTRIBUTING.md. This file is the short, rules-first version for agents. Where the two disagree, the code and tests win. Point out the mismatch in your PR.


Setup and commands

Python 3.11+. Work inside a virtualenv.

python3.11 -m venv .venv && source .venv/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"          # core + pytest
# pip install -e ".[ai]"         # only if touching RAG/document tools (~1–2 GB, pulls torch)

Run these before you call a change done (CI runs the same):

python -m pytest -q                                    # offline, no network, no credentials
pipx run ruff check --select F src scripts tests       # unused imports / undefined names
python -m build                                        # package must still build

Optional, needs network, hits the live site:

python -u scripts/canary.py      # live parser checks against Screener.in / NSE
python run_server.py             # start the server over stdio
  • CI installs core deps only, without [ai]. That is deliberate. Code under src/ must import and the tests must pass without pdfplumber, chromadb or sentence-transformers. Import those lazily inside functions, never at module top level.
  • Tests must stay offline. Don't add tests that make network calls or need SCREENER_USERNAME / SCREENER_PASSWORD. Use monkeypatch and the HTML in tests/fixtures/.

Map of the code

Path What lives there
src/screener_mcp/server.py Every @mcp.tool(), prompt and resource. Thin wrappers only. Start here.
src/screener_mcp/tools/*.py Tool implementations (the _-prefixed imports in server.py)
src/screener_mcp/core/envelope.py ToolResult, ToolError, to_envelope: the response contract
src/screener_mcp/core/company_page.py Symbol resolution, page fetch, consolidated → standalone fallback
src/screener_mcp/core/quality.py Missing-field detection and ratio sanity bounds
src/screener_mcp/core/nse_client.py NSE API client (raises NSEError)
src/screener_mcp/core/rag.py, vector_store.py Local PDF → chunks → embeddings → ChromaDB pipeline
src/screener_mcp/parsers/ HTML/JSON parsing for Screener pages
src/screener_mcp/client.py Screener.in HTTP client and login
src/screener_mcp/ui/ Bundled MCP App dashboard (vendored JS; don't hand-edit ext-apps-app-with-deps.js)
tests/ Offline tests: registry/docs consistency, envelope, parsers, protocol
scripts/canary.py Live checks, run daily in CI; failures open an issue
docs/ GitHub Pages landing site

Read the full file on GitHub · 174 lines

Changes

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.

  1. 2d ago First seen · 174 lines · 2,126 tokens per session scan A 5cf02d71e4d1

Subscribe to this mod's changes

screener-mcp AGENTS.md is an instructions file published in the GitHub repository LogeshR15/screener-mcp (29 stars, last pushed yesterday), licensed MIT. It adds 2,126 tokens to every session, about $0.0085 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

screener-mcp AGENTS.md compared with instructions from other repositories

screener-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
screener-mcp AGENTS.mdLogeshR15/screener-mcpInstructions file29yesterdayMITA2,126Codex, OpenCode
mcp-server-excel copilot-instructions.mdsbroenne/mcp-server-excelInstructions file965yesterdayMITA107GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,329GitHub Copilot