feed-mcp copilot-instructions.md

feed-mcp copilot-instructions.md is an instructions file for GitHub Copilot from richardwooding/feed-mcp. It costs 635 tokens per session, scanned A, original, MIT.

Development instructions for a Go server that reads and serves RSS, Atom, and JSON feeds through MCP. These are common formats used by websites and services to publish regularly updated articles or other items.

In plain words
What is it for?
Working on feed retrieval, in-memory caching, feed conversion, command-line options, MCP communication, and Go tests.
Why use it?
It explains where fetching, parsing, caching, errors, and protocol handling belong, so changes fit the existing code structure.

Instructions file for GitHub Copilot

Install

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.

agentmods
npx agentmods add instructions/richardwooding/feed-mcp/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/richardwooding/feed-mcp

Made for: GitHub Copilot.

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 feed-mcp copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/richardwooding/feed-mcp/copilot-instructions.svg)](https://agentmods.dev/instructions/richardwooding/feed-mcp/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/richardwooding/feed-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/richardwooding/feed-mcp/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 635 This file is loaded in full into every session.
When invoked 635 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00635 $0.00635
Opus 5 $0.00318 $0.00318
Sonnet 5 $0.00127 $0.00127
Haiku 4.5 $0.00064 $0.00064

Measured 5d ago against content hash 7fbd312ca604, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

feed-mcp copilot-instructions.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 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.

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.

.github/copilot-instructions.md · 41 lines

How it starts

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

Copilot Instructions for MCP Feed Server

Codebase Structure & Architecture

  • Entry Point: main.go sets up the CLI and launches the MCP server.
  • CLI: Uses the kong library for command parsing (Run command is the main entry).
  • Feed Logic: Handled in model (data structures, conversion) and store (fetching, caching, error handling) packages.
  • Caching: Uses gocache and ristretto for in-memory feed caching.
  • Feed Parsing: gofeed parses RSS/Atom/JSON feeds.
  • Protocol Layer: mcpserver handles the MCP protocol with the official MCP Go SDK.
  • Tests: All core logic is tested, with test files named *_test.go (see main_test.go, store/store_test.go, etc).

Go Conventions & Patterns

  • Package Layout
    • model: Data structures (Feed, Globals, transports) and adapters (e.g., FromGoFeed()).
    • store: Feed fetching, caching, management (Store type, NewStore constructor, error handling).
  • Error Handling
    • Returns error as the last return in all constructors and core methods.
    • Uses Go idioms: if error, return early (if err != nil { return ... }).
    • Custom errors for validation (e.g., ErrInvalidTransport).
  • Concurrency
    • Uses goroutines and sync.WaitGroup for parallel feed fetching at startup.
  • Config Struct Pattern
    • store.NewStore(Config) accepts a config struct, validates, and applies sensible defaults (Timeout, ExpireAfter).
  • Test Patterns
    • Use Go’s testing package.
    • Test helpers (e.g., mockFeedServer) for HTTP mocking.
    • t.Fatalf/t.Errorf for error assertions and value checks.

Design Decisions

  • Extensibility: Adding new transports, feed sources, or output formats requires minimal changes—extend the relevant package.
  • Caching Layer: Abstracted for efficiency and to support pluggable backends.
  • Decoupling: Strong separation between CLI, business logic, and protocol/server code.
  • Strong Typing: All major entities (feeds, transports, config) are typed for clarity and type safety.

Read the full file on GitHub · 41 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. 5d ago First seen · 41 lines · 635 tokens per session scan A 7fbd312ca604

Subscribe to this mod's changes

feed-mcp copilot-instructions.md is an instructions file published in the GitHub repository richardwooding/feed-mcp (34 stars, last pushed 9d ago), licensed MIT. It adds 635 tokens to every session, about $0.0032 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