ai-news-mcp: Instructions file for Claude Code

CLAUDE.md

ai-news-mcp CLAUDE.md is an instructions file for Claude Code from treesoop/ai-news-mcp. It costs 854 tokens per session, scanned A, original, MIT.

A project instruction document for an AI-news service that collects and caches technology news and provides it through a web API. It describes the service setup, architecture, database, and news sources.

In plain words
What is it for?
Use it when working on the ai-news-mcp project, its Supabase backend, the news-fetching function, or integrations that consume its API.
Why use it?
It gives coding agents the project context needed to make consistent changes without rediscovering how the service and its shared news cache work.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is treesoop/ai-news-mcp's own configuration. It tells Claude Code how to work on ai-news-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 ai-news-mcp configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/potenlab/potenlab/scheduled_task/ai-news-mcp/dist/index.js.

Reuse

Borrowing it

Nothing to install: this file belongs to treesoop/ai-news-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/treesoop/ai-news-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/treesoop/ai-news-mcp

Made for: Claude Code.

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 ai-news-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/treesoop/ai-news-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/treesoop/ai-news-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/treesoop/ai-news-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/treesoop/ai-news-mcp/claude-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 ai-news-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/treesoop/ai-news-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/treesoop/ai-news-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 854 This file is loaded in full into every session.
When invoked 854 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.00854 $0.00854
Opus 5 $0.00427 $0.00427
Sonnet 5 $0.00171 $0.00171
Haiku 4.5 $0.00085 $0.00085

Measured 9d ago against content hash cf6c2a98b1ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ai-news-mcp CLAUDE.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 9d 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.

CLAUDE.md · 98 lines

How it starts

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

ai-news-mcp 프로젝트 컨텍스트

프로젝트 개요

실시간 AI/기술 뉴스를 수집·캐싱해서 누구나 HTTP로 호출할 수 있는 공개 API. 블로그 자동화 에이전트들(treesoop, potenlab, hanguljobs)이 중복 스크래핑 없이 공유해서 사용.

아키텍처

[Claude / any tool]
       ↓ HTTP GET
[Supabase Edge Function: ai-news-fetcher]
       ↓ cache miss          ↓ cache hit (1시간 TTL)
  [스크래핑 실행]      [news_cache 테이블 반환]
       ↓
  [news_cache 저장]

[로컬 MCP 서버: ai-news-mcp]
  → Edge Function 호출하는 얇은 wrapper

Supabase 프로젝트

  • Project ID: iiwkkrvyhktnwolsfndx
  • URL: https://iiwkkrvyhktnwolsfndx.supabase.co
  • Edge Function: ai-news-fetcher
  • DB Table: news_cache

뉴스 소스 (11개)

소스 형식 카테고리
HackerNews Firebase API dev-tools, AI
Dev.to REST API dev-tools, AI
Lobsters JSON dev-tools
Reddit r/MachineLearning JSON AI
Reddit r/LocalLLaMA JSON AI
Reddit r/artificial JSON AI, community
Reddit r/programming JSON dev-tools, community
ArXiv cs.AI RSS AI
ArXiv cs.LG RSS AI
GitHub Trending HTML 파싱 dev-tools
GeekNews HTML 파싱 community

API 엔드포인트

GET https://iiwkkrvyhktnwolsfndx.supabase.co/functions/v1/ai-news-fetcher
  ?category=all|AI|dev-tools|community   (기본: all)
  &refresh=true                           (캐시 무시하고 재수집)

Response:
{
  "cached_at": "2026-04-01T09:00:00Z",
  "age_minutes": 12,
  "total": 910,
  "items": [{ "title", "url", "source", "score", "summary" }]
}

파일 구조

ai-news-mcp/
├── src/                    # 로컬 MCP 서버 (Node.js)
│   ├── index.ts            # MCP stdio 서버
│   ├── scrapers/           # 각 소스별 스크래퍼
│   └── tools/              # MCP tool 핸들러
├── supabase/
│   └── functions/
│       └── ai-news-fetcher/
│           └── index.ts    # Edge Function (Deno)
├── .env                    # Supabase 환경변수
├── CLAUDE.md               # 이 파일
└── package.json

환경변수 (.env)

SUPABASE_URL=https://iiwkkrvyhktnwolsfndx.supabase.co
SUPABASE_SERVICE_ROLE_KEY=...

로컬 MCP 설정 (~/.claude.json)

{
  "mcpServers": {
    "ai-news-mcp": {
      "command": "node",
      "args": ["/Users/potenlab/potenlab/scheduled_task/ai-news-mcp/dist/index.js"]
    }
  }
}

Read the full file on GitHub · 98 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. 9d ago First seen · 98 lines · 854 tokens per session scan A cf6c2a98b1ca

Subscribe to this mod's changes

ai-news-mcp CLAUDE.md is an instructions file published in the GitHub repository treesoop/ai-news-mcp (70 stars, last pushed 3mo ago), licensed MIT. It adds 854 tokens to every session, about $0.0043 per session on Opus 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-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens