Automated tech watch: collects GitHub and Dev.to activity, summarises it with Claude, stores it in SQLite and exposes it through an MCP server. CREA 2nd-year school project.
  • TypeScript 87.5%
  • JavaScript 10.2%
  • Dockerfile 2.3%
Find a file
2026-09-08 15:36:06 +02:00
data chore: set up the TypeScript project 2026-09-08 10:37:55 +02:00
src feat: normalize structured summaries 2026-09-08 14:23:39 +02:00
.dockerignore build(docker): multi-stage image and local orchestration 2026-09-08 10:37:57 +02:00
.env.example Set MCP_HOST to 0.0.0.0 in example 2026-09-08 12:08:26 +02:00
.gitattributes chore: set up the TypeScript project 2026-09-08 10:37:55 +02:00
.gitignore chore: set up the TypeScript project 2026-09-08 10:37:55 +02:00
docker-compose.yml build(docker): multi-stage image and local orchestration 2026-09-08 10:37:57 +02:00
Dockerfile Change default CMD to mcp-http for Railway 2026-09-08 12:03:49 +02:00
LICENSE chore: set up the TypeScript project 2026-09-08 10:37:55 +02:00
package-lock.json chore: set up the TypeScript project 2026-09-08 10:37:55 +02:00
package.json feat: normalize structured summaries 2026-09-08 14:23:39 +02:00
README.en.md update README 2026-09-08 15:36:06 +02:00
README.md update README 2026-09-08 15:36:06 +02:00
tsconfig.json chore: set up the TypeScript project 2026-09-08 10:37:55 +02:00

dev-stack-watcher-mcp

Version française

Automated tech watch: every day the project collects GitHub and Dev.to activity, asks Claude to turn it into a structured JSON digest, stores it in SQLite (one summary per day) and exposes it through an MCP server.

The code is in English; the generated digests are in French, since that is the deliverable meant to be read.

School project — CREA, 2nd year, AI module · Author: Matis Wostry


Using the MCP

An instance is already deployed and publicly queryable (read-only, no token).

Server URL: https://mcp-crea-production-3669.up.railway.app/mcp

Prompts

Once the connector is wired up :

  • "Show me all the available summaries."
  • "Is there a summary for today?"
  • "Show the summary for September 8th, 2026."
  • "Show the latest summary."
  • "In today's digest, what shipped on the GitHub side?"
  • "Summarise the Dev.to articles from the latest summary."

If Claude answers without querying the server, name the tool or resource explicitly:

  • "Use the list_summaries tool from the mcp-crea connector and show me the result."
  • "Call the latest_summary tool and display the returned summary."
  • "Call the get_summary tool with date = 2026-09-08."
  • "Read the summaries://list resource."
  • "Read the summary://2026-09-08 resource."
  • "Answer only from the mcp-crea connector data, not from your general knowledge."

Available tools: list_summaries (limit, 1–200), get_summary (date as YYYY-MM-DD), latest_summary (no parameter).


Architecture

STAGE 1 — Collect           STAGE 2 — Summarise + store        STAGE 3 — Expose
┌────────────────────┐      ┌──────────────────────────┐       ┌──────────────────┐
│ GitHub API         │      │ Claude API               │       │ MCP server       │
│  trending repos    │──┐   │  → structured JSON      │   ┌──▶│                  │
│  releases (7 d)    │  ├──▶├──────────────────────────┤───┤   │ summaries://list │
├────────────────────┤  │   │ SQLite                   │   │   │ summary://{date} │
│ Dev.to API         │──┘   │  1 summary / day (UNIQUE)│   └──▶│ 3 MCP tools      │
│  articles of today │      │  automatic migrations    │       └──────────────────┘
└────────────────────┘      └──────────────────────────┘

Deduplication — the summary_date column carries a UNIQUE constraint, and the check runs before the Claude call: running twice on the same day spends no tokens.


Requirements

  • Node.js ≥ 20 (tested on 22.12)
  • An Anthropic API key — console.anthropic.com
  • A GitHub token (optional, but raises the limit from 60 to 5000 requests/hour)

Installation

npm install
cp .env.example .env      # then fill in ANTHROPIC_API_KEY
npm run build             # optional during development

The SQLite store and its tables are created automatically on first run.


Configuration

Everything goes through the .env file (see .env.example for the full list).

Variable Default Purpose
ANTHROPIC_API_KEY — Required to generate a summary
CLAUDE_MODEL claude-opus-5 Model used for summarisation
GITHUB_TOKEN — Scope-less token; lifts the 60 req/h limit
GITHUB_LOOKBACK_DAYS 7 Window for trending repositories and releases
DEVTO_ARTICLE_LIMIT 15 Number of articles collected
DB_PATH ./data/watch.db SQLite file location
LOG_LEVEL info debug, info, warn, error, silent

Every log line goes to stderr: stdout is reserved for the MCP server's JSON-RPC protocol, and a single stray line would break the connection.


Usage

Generate today's summary

npm run fetch
INFO  Collecting data (GitHub + Dev.to)...
INFO  Dev.to: 15 article(s) collected.
INFO  GitHub: 26 item(s) collected, 0 error(s).
INFO  Generating summary with claude-opus-5 (41 item(s), effort high).
OK    Summary for 2026-09-08 stored (id 1, 41 item(s)).

Options (after -- with npm):

npm run fetch -- --skip-summary      # collection only, no Claude call
npm run fetch -- --force             # regenerate and replace today's summary
npm run fetch -- --date=2026-09-01   # target another date

Read the summaries

npm run list                         # catalogue of stored summaries
npm run show                         # print the most recent one
npm run show -- 2026-09-08           # print a specific date

Start the MCP server

npm run mcp        # stdio: Claude spawns the process itself
npm run mcp:http   # HTTP:  http://127.0.0.1:3000/mcp

In stdio mode the server waits silently: that is expected, it is driven by the client.


Connecting an MCP client

The server exposes two resources and three tools.

Resource Content
summaries://list JSON catalogue: date, title, model, item count
summary://{date} Structured JSON summary for one day (YYYY-MM-DD)
Tool Parameters
list_summaries limit (1–200, default 30)
get_summary date (YYYY-MM-DD, required)
latest_summary —

The tools let Claude query the store in natural language: "show me the digest for September 8th", "what shipped on the Next.js side?".

Claude Desktop — in claude_desktop_config.json:

{
  "mcpServers": {
    "dev-stack-watcher": {
      "command": "node",
      "args": ["D:/CREA/2eAnnee/IA/dev-stack-watcher-mcp/dist/cli.js", "mcp"]
    }
  }
}

Claude Code:

claude mcp add dev-stack-watcher -- node <absolute-path>/dist/cli.js mcp

Run npm run build first, then restart the client.


Project structure

src/
├── fetcher/
│   ├── github.ts      Trending repositories + releases from the last 7 days
│   ├── devto.ts       Popular articles of the day
│   └── types.ts       FeedItem and shared helpers
├── summarizer/
│   ├── claude.ts      Prompt, API call, network retries
│   └── storage.ts     SQLite: migrations, deduplication, reads and writes
├── mcp/
│   ├── server.ts      MCP server: resources, tools, stdio transport
│   └── http.ts        HTTP transport (sessions, /health probe)
├── config.ts          Centralised configuration (.env)
├── logger.ts          Logging to stderr
├── cli.ts             Command-line interface
└── index.ts           runWatch() pipeline + public API

Dockerfile and docker-compose.yml allow running the project in a container.