taskboard-mcp

taskboard-mcp

An MCP server that integrates a Kanban task board into a sandboxed agent environment, with tools for task management and deterministic state snapshots for agent evaluation.

Category
Visit Server

README

taskboard-mcp

An MCP server that integrates a Kanban task board into a sandboxed agent environment, built with FastMCP.

The interesting part is not the task board. It is the integration contract: what an RL sandbox needs from an application before it can be used to train or evaluate an agent — a deterministic starting state, an exact snapshot, a restore that round-trips, and rules that hold at the protocol boundary rather than only in the UI.

┌──────────────┐   MCP over stdio/http   ┌─────────────────┐
│  agent /     │◄───────────────────────►│  server.py      │  protocol layer
│  harness     │                         │  (FastMCP)      │  15 tools, 3 resources
└──────────────┘                         └────────┬────────┘
       │                                          │
       │ populate / snapshot / restore            │
       │ (out of band, via CLI)                   ▼
       │                                 ┌─────────────────┐
       └────────────────────────────────►│  db.py          │  application layer
                                         │  state.py       │  rules + persistence
                                         └────────┬────────┘
                                                  ▼
                                            SQLite @ /data

Why the layers are split

server.py contains no business rules. Every tool is a two-line translation between an MCP call and a function in db.py or state.py. That split buys three things:

  • The app is testable without a protocol client in the loop (test_db.py).
  • The protocol surface is testable without reasoning about business rules (test_mcp_surface.py).
  • The same rules apply whether a call arrives from an agent, the CLI, or the harness — an agent cannot reach an illegal board state by going around the tool layer, because the tool layer is not where the check lives.

Expected failures raise TaskboardError subclasses and are mapped to ToolError at the boundary. Unexpected exceptions are deliberately not caught, so a genuine bug surfaces as a server error instead of being disguised as a normal negative result.

State hooks

Snapshots are JSON, not a copy of the SQLite file. That costs a little speed and buys a lot: snapshots are diffable, hand-editable, portable across schema-compatible versions, and comparable by hash.

Every snapshot carries a digest — a SHA-256 over the logical state with volatile fields (row ids, timestamps) excluded, and comments keyed to their task by title rather than by id. Two boards that arrive at the same logical state by different routes produce the same digest:

# different ids, different timestamps, same digest
assert snapshot_a["digest"] == snapshot_b["digest"]

That is what makes "did the agent reach the target state?" a one-line check instead of a bespoke comparison per task.

python -m taskboard_mcp populate sprint_demo   # deterministic start state
python -m taskboard_mcp snapshot > before.json
python -m taskboard_mcp restore before.json    # exact round trip
python -m taskboard_mcp reset                  # empty board
python -m taskboard_mcp healthcheck            # exit 0 if usable

Tool surface

Tag Tools
read board_summary, list_tasks, get_task, search_tasks, list_transitions
write create_task, move_task, assign_task, comment_on_task, delete_task
admin populate_state, snapshot_state, restore_state, reset_state, list_fixtures

Resources: taskboard://board/summary, taskboard://task/{task_id}, taskboard://schema.

Tags are how a deployment filters the agent-visible tool list — see tool_visibility in app.yaml. The harness still calls admin tools out of band.

Transition rules

Tasks move through backlog → in_progress → review → done. Skipping a column is rejected, and so is a no-op move. list_transitions and the taskboard://schema resource both expose the table so a client can check before it calls rather than discovering the rule through an error.

Configuration

All configuration is environment-driven, so one image deploys to any sandbox slot without a rebuild.

Variable Default Purpose
TASKBOARD_DB_PATH /data/taskboard.db SQLite location
TASKBOARD_FIXTURES_DIR /app/fixtures Where populate looks
TASKBOARD_TRANSPORT stdio stdio, http, or sse
TASKBOARD_HOST / TASKBOARD_PORT 0.0.0.0 / 8080 HTTP bind
TASKBOARD_READ_ONLY unset Reject all mutating tools

Local development

make install      # venv + editable install with dev extras
make test         # 51 tests
make smoke        # spawns the server as a subprocess, drives a full episode
make lint
make run          # serve on stdio against ./local.db

Docker

make docker-build
docker run --rm -i -v taskboard-data:/data taskboard-mcp:0.1.0 serve
docker run --rm -v taskboard-data:/data taskboard-mcp:0.1.0 populate sprint_demo

Multi-stage build, non-root user (uid 10001), /data as the only writable path, and a HEALTHCHECK wired to the CLI's healthcheck subcommand.

Testing approach

51 tests across three layers:

  • test_db.py — business rules: transition legality, validation, cascade deletes, search behaviour, summary arithmetic.
  • test_state.py — the hooks that matter for sandbox integration: exact round-trip, digest stability under id/timestamp churn, digest sensitivity to real changes, path-traversal rejection on fixture names, autoincrement reset after restore.
  • test_mcp_surface.py — protocol layer via an in-memory Client: tool registration, docstring coverage, resource templates, error mapping, read-only enforcement.

Each test runs against its own SQLite file in a tmp_path, so the suite is order-independent.

The suite is mutation-checked: making an illegal transition legal in config.py turns three tests red, including one that only reads the schema resource. Tests that stay green under a rule change are not testing the rule.

Connecting a client

{
  "mcpServers": {
    "taskboard": {
      "command": "python",
      "args": ["-m", "taskboard_mcp", "serve"],
      "env": {
        "TASKBOARD_DB_PATH": "/data/taskboard.db",
        "TASKBOARD_FIXTURES_DIR": "/app/fixtures"
      }
    }
  }
}

Known limitations

  • SQLite means a single writer. Fine for one sandbox per container, which is the deployment model; it would need revisiting for a shared instance.
  • Full-state snapshots are O(n) in board size. At fixture scale that is microseconds, but a board with millions of tasks would want incremental capture.
  • Search is LIKE-based substring matching, not FTS. Adequate for the tool surface; sqlite3 FTS5 would be the upgrade path if search quality mattered.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured