Skip to main content
Glama

mcp-tasks-demo

A tiny MCP server in TypeScript, built for the Code With Stan video "MCP explained".

It keeps tasks in a local JSON file and shows all three MCP primitives:

Primitive

Name

What it does

Tool

add_task

Adds a task

Resource

tasks://open

Returns open tasks as JSON

Prompt

standup

Drafts a standup from open tasks

Built on the MCP spec revision 2026-07-28 with the TypeScript SDK v2 (@modelcontextprotocol/server 2.4.0).

Run it

npm install
npm run client          # 2026-07-28 client: no handshake, _meta on every request
npm run client:legacy   # 2025-era client: initialize handshake

Both clients print every message on the wire (>> sent, << received). The same server answers both.

Related MCP server: task-manager-mcp

Connect to Claude Code

claude mcp add tasks -- npx tsx "/absolute/path/to/mcp-tasks-demo/src/server.ts"

Then run /mcp in Claude Code to check the connection. Type @ to attach tasks://open, and / to find the standup prompt.

Tasks are stored in ./tasks.json by default. Set TASKS_FILE to change the location.

Two things worth knowing

  • stdio and the new spec. Wiring StdioServerTransport by hand serves the 2025 protocol. serveStdio(createServer) serves 2026-07-28 and still answers older clients.

  • stdout is for MCP messages only. Log to stderr (console.error), never stdout.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Production-ready TypeScript MCP server exposing utility, GitHub, and Microsoft Teams tools over stdio.
      14
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A task manager MCP server that demonstrates all three MCP primitives (tools, resources, prompts). Enables users to manage tasks, read task summaries and details, and run structured planning/review prompts through natural language.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      A lightweight task management MCP server that enables CRUD operations on tasks stored in a single JSON file, including listing, creating, updating progress, and setting priorities.
      ISC