Skip to main content
Glama

Tasklog MCP

Small stdio MCP server for work-first continuity across coding sessions.

Without a continuity layer, session recovery usually turns into ad hoc recap work: tell the agent to write a summary, remember which .md file it went into, find that file again next session, ask the agent to reread it, then hope it reconstructs the right scope from a mix of stale notes and raw logs.

Tasklog turns that into a repeatable workflow. It gives one coding workspace a lightweight local system for tracking current work, session handoffs, next steps, and the small set of artifacts that matter when you need to resume quickly.

It answers a narrow set of questions quickly:

  • What am I working on right now?

  • What work is still open?

  • What changed in the last session?

  • Where should plans, specs, and reminders live?

  • If a work is already closed, what is the right re-entry brief?

Tasklog is intentionally work-first, not log-first and not a general memory layer.

Why It Exists

Most AI-assisted workflows still handle continuity manually.

In practice that usually means some mix of:

  • asking the agent to dump a one-off summary into a markdown file

  • remembering where that file was written

  • rereading long logs because no work boundary was captured cleanly

  • reconstructing next steps from scratch after an interruption

Most session logging tools then drift toward one of two extremes:

  • a raw chronological notebook that gets expensive to reread

  • a broad memory system that tries to remember everything

Tasklog stays narrower than both and tries to make continuity part of the normal work loop instead of an extra recap chore.

  • work is the main unit of continuity

  • log is for session handoff only

  • workdocs/ hold the durable human-facing artifacts

  • closed-work summary.md exists only to accelerate re-entry into that work

The goal is to make session recovery cheap without turning Tasklog into a general memory layer.

Related MCP server: AgentBridge MCP

Quick Start

Run with npx:

npx -y tasklog-mcp@0.3.0

Or install globally:

npm install -g tasklog-mcp
tasklog-mcp

Add it to Codex:

codex mcp add tasklog -- npx -y tasklog-mcp@0.3.0

By default, Tasklog uses the current working directory as project_root. To point it elsewhere:

npx -y tasklog-mcp@0.3.0 --project-root /path/to/workspace

Real Workflow Use Cases

Tasklog is most useful when sessions move fast and continuity breaks often.

Common cases:

  • you come back to a workspace and want the agent to list what is still open before choosing the next task

  • you want to triage unfinished work by impact or tag, such as finding the open critical items first

  • you exited a session abruptly and need to clean up stale active work items before resuming

  • you know roughly what you were working on, but want the agent to recover scope, next steps, and artifacts without rereading long logs

  • you finished a risky or expensive change and want a narrow re-entry brief for that one work later

This makes Tasklog a better fit for fast-moving solo work, agent-assisted iteration, and "vibe coding" style workflows than for broad knowledge management.

Resume Workflow

flowchart LR
    A[Start a new session] --> B[See what is still open]
    B --> C[Choose the right work]
    C --> D[Load scope, notes, and next steps]
    D --> E[Do the work]
    E --> F[Leave a clean handoff]

This is the typical resume flow Tasklog is trying to make cheap: recover the right work, re-enter it with minimal context, then leave behind a clean handoff for the next session.

Typical tools behind this flow:

  • get_active_context

  • list_works or resume_work

  • read_work_context

  • append_work_note, append_session_log, set_work_status

Mental Model

Tasklog separates continuity into two layers:

  • machine-facing state under .tasklog/

  • human-facing work artifacts under workdocs/

The main objects are:

  • work: one coherent effort

  • log: one session handoff entry

  • design.md: goals, constraints, tradeoffs

  • plan.md: execution sequence and target paths

  • spec.md: exact behavior or contract details

  • notes.md: lightweight reminders

  • summary.md: optional re-entry brief for selected closed work

In practice:

  • active work is driven by recent logs plus current workdocs

  • small closed work can stay raw

  • selected closed work can become summary-first

Typical Flow

  1. Start with get_active_context

  2. If needed, use list_works(status="open") and resume_work

  3. Call read_work_context

  4. Use workdocs and logs according to intent

Recommended tool choices:

  • start a new effort: start_work

  • continue an existing effort: resume_work

  • capture approach: create_design_doc

  • capture implementation steps: create_plan_doc

  • capture exact rules: create_spec_doc

  • note something down: append_work_note

  • record a session handoff: append_session_log

Benchmark

Tasklog's workflow claim is supported by a scenario-driven re-entry benchmark in scripts/benchmark-reentry.ts.

Measured on one real multi-repo workspace, the current sample covers 15 workflow scenarios across active work discovery plus active and done work re-entry.

The benchmark compares four resume paths:

  • no continuity: inspect only workspace/codebase context and git state, with no .tasklog or workdocs/

  • markdown notebook scan: reread the session notebook/log markdown directly

  • raw JSON state scan: read .tasklog/active-context.json, .tasklog/works.json, and .tasklog/session-log.json directly and reconstruct the answer without the higher-level MCP flow

  • Tasklog path: use the work-first MCP tools such as get_active_context, list_works, resume_work, and read_work_context

The benchmark grades two things:

  • coverage: whether the payload contains the evidence needed to answer a real resume question

  • structured-answer accuracy: whether a reconstructed answer matches ground truth field-by-field

Full-sample summary:

Resume Path

What It Simulates

Coverage

Structured-Answer Accuracy

Re-entry Context Surface

No continuity

Codebase/workspace scan only

32.43%

n/a

38,638 bytes

Markdown notes

Freeform note reread

63.06%

n/a

942,822 bytes

Raw JSON state

Direct state-file reconstruction

100%

100%

1,314,527 bytes

Tasklog

Work-first MCP re-entry flow

100%

100%

79,781 bytes

Across the full sample, Tasklog matched the raw JSON path on coverage and structured-answer accuracy while using about 91.54% less context than markdown notes and 93.93% less context than direct raw-state reconstruction.

For practical re-entry, Tasklog is the lowest-context path that still stayed fully answerable across the full sample.

This benchmark measures the payload exposed for re-entry, not total end-to-end model token usage. It uses a real workspace and real work items, but it is still not a blind human study.

To rerun:

npm run bench:reentry -- --project-root /path/to/workspace --manifest docs/benchmark-candidates.json

You can still use one or more --work-id <work_id> flags when you want a narrower check.

Closed-Work Summaries

Tasklog can attach summary.md to selected closed work items.

This summary is intentionally narrow:

  • it is the canonical re-entry brief for that work

  • it is not a generic retrieval layer for arbitrary project facts

  • it does not replace project docs, code search, or architecture tools

  • it does not create free-floating memory objects outside a work item

For closed/consolidated work:

  • read_work_context is summary-first and path-first

  • summary.md is the default entrypoint

  • include_summary=true inlines the summary body only when needed

  • include_recent_logs=true loads raw log evidence only when needed

By default, consolidated work does not inline the summary body or recent logs.

Work Records

Each work has:

  • work_id: 6-character base62 id

  • title

  • slug

  • status: active, blocked, or done

  • optional impact: low, medium, high, or critical

  • start_dir

  • scope_paths

  • optional summary

  • optional tags

  • created_at

  • updated_at

impact is work metadata. It helps decide whether a closed work deserves a canonical re-entry brief. It is not a separate memory object.

Scope Model

Tasklog separates overall work scope from the narrower scope of one implementation pass:

  • work scope lives in start_dir and scope_paths

  • plan scope lives in target_paths inside plan.md

One project_root can be:

  • a single repo

  • or a parent workspace containing multiple repos

Tasklog tracks one workspace root at a time, not one git repo at a time.

Storage Layout

<project_root>/
  .tasklog/
    works.json
    active-context.json
    session-log.json
    session-log.md
  workdocs/
    <work_id>-<slug>/
      design.md
      plan.md
      spec.md
      summary.md
      notes.md

Authoritative sources:

  • .tasklog/works.json: machine-facing work state

  • .tasklog/session-log.json: machine-facing session logs

  • workdocs/: human-facing work artifacts

  • active_work: session hint only, not the source of truth

Compatibility notes:

  • canonical log writes are mirrored to legacy .ai-history.json

  • canonical markdown log writes are mirrored to legacy .ai-session-log.md

  • if canonical JSON does not exist yet, Tasklog can still read legacy .ai-history.json

Tool Surface

Work discovery:

  • get_active_context

  • list_works

  • start_work

  • resume_work

  • set_work_impact

  • set_work_status

  • read_work_context

Artifact creation:

  • create_design_doc

  • create_plan_doc

  • create_spec_doc

  • create_summary_doc

  • append_work_note

Logs:

  • get_recent_logs

  • append_session_log

  • update_log_status

  • amend_log_metadata

Deprecated compatibility:

  • get_open_threads

Prefer list_works(status="open") for new flows.

Boundaries

Tasklog is not:

  • a full journal

  • a generic memory MCP

  • a note vault for arbitrary facts

  • a replacement for project docs, code search, or architecture tools

  • a guarantee that every interrupted session leaves perfect active-work state behind

Design goals:

  • keep it small

  • keep it explicit

  • keep it low-drag

  • keep it handoff-friendly

  • keep it lean

Current Friction

Tasklog is intentionally small, so some cleanup still stays explicit.

  • if a session ends abruptly, a work item may still be marked active until the next session closes or updates it

  • that is usually cheap to fix with list_works plus set_work_status, but it is still manual state cleanup today

  • if your workflow needs automatic long-term memory, semantic retrieval, or project-wide reasoning, pair Tasklog with docs, code search, and architecture tools instead of stretching Tasklog beyond its scope

Reliability Notes

  • writes are serialized within one server process

  • writes are atomic per file using temp-file replacement

  • multi-file operations are not transactionally atomic

  • all machine and document paths stay inside the selected project_root

  • multiple server processes pointing at the same root are not a supported coordination mode

Resources

The MCP server exposes:

  • tasklog://usage

  • tasklog://schema

  • tasklog://examples

These are the detailed references for workflow rules, schemas, and examples.

Local Development

cd tasklog-mcp
npm install
npm test
npm run build

Run against a specific project root:

node dist/index.js --project-root /Users/Lab/Desktop/WebWay/CodeWebway

Or during development:

npm run dev -- --project-root /Users/Lab/Desktop/WebWay/CodeWebway

If --project-root is omitted, the server uses the current working directory.

MCP Config

Generic stdio config:

{
  "mcpServers": {
    "tasklog": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "tasklog-mcp@0.3.0"],
      "env": {}
    }
  }
}

If you want to point somewhere else explicitly, add --project-root <path> to args.

Legacy compatibility environment variables are still supported:

  • LOGBOOK_PROJECT_ROOT

  • LOGBOOK_JSON_FILE

  • LOGBOOK_MARKDOWN_FILE

Claude Desktop and Cursor can use the same stdio command pattern. If you keep separate config files per client, pin the same tasklog-mcp@0.3.0 package version there too so Codex and Claude resolve the same release.

Available Tools

17 tools
amend_log_metadataAmend log metadataA

Amend limited metadata on an existing entry. Use this for affected_files, tags, next_steps, or blockers only.

Inputs: log_id (required), tags, blockers, next_steps, +1 more. Returns: entry

append_session_logAppend a project session logB

Append a new session activity log. The tool will attach a work id automatically when the active work is fresh, or accept an explicit work id.

Inputs: status (required), summary (required), change_type (required), tags, +6 more. Returns: entry, json_path, project_root, markdown_path

append_work_noteAppend work noteA

Append a lightweight note to notes.md for the active work. Use this when the user says to note something down.

Inputs: note (required), work_id. Returns: path, work, created

create_design_docCreate design docB

Create or reopen design.md for the active work using the standard workdoc template.

Inputs: work_id. Returns: path, work, created, target_paths

create_plan_docCreate plan docB

Create or reopen plan.md for the active work. target_paths may narrow the implementation pass to a subset of the work scope.

Inputs: work_id, target_paths. Returns: path, work, created, target_paths

create_spec_docCreate spec docA

Create or reopen spec.md for the active work using the standard workdoc template.

Inputs: work_id. Returns: path, work, created, target_paths

create_summary_docCreate summary docA

Create or reopen summary.md for a done work item so the closed work has a canonical re-entry brief.

Inputs: work_id. Returns: path, work, created, target_paths

get_active_contextGet active contextA

Return the inferred project roots, canonical log paths, workdocs root, and current active work state for this session.

Inputs: no named parameters. Returns: freshness, json_path, state_root, updated_at, +5 more

get_open_threadsGet open threadsA

Deprecated compatibility surface. Returns unresolved or follow-up-worthy log entries, but prefer list_works(status="open") for work-first discovery.

Inputs: limit. Returns: count, entries, json_path, project_root, +1 more

get_recent_logsGet recent session logsA

Read recent session summaries. Defaults to the active work when one is fresh; otherwise falls back to project-wide history.

Inputs: limit, work_id, project_wide. Returns: count, entries, json_path, project_root, +1 more

list_worksList worksA

List work items for the current project. Prefer this over open-thread log discovery when the user asks what is still open.

Inputs: tag, limit, query, impact, +3 more. Returns: count, works, project_root, workdocs_root

read_work_contextRead work contextB

Return a concise overview of one work including artifact paths, context mode, recent logs, and optional summary loading for consolidated closed work.

Inputs: work_id, include_summary, include_recent_logs. Returns: context

resume_workResume workA

Set the active work for this session by work id or query. Use this before reading work context or writing work-scoped logs.

Inputs: query, work_id. Returns: freshness, json_path, state_root, updated_at, +5 more

set_work_impactSet work impactB

Set or clear the work-level impact metadata used to judge how important this work is to remember during re-entry.

Inputs: work_id (required), impact. Returns: work

set_work_statusSet work statusC

Update the lifecycle status of a work item.

Inputs: status (required), work_id (required). Returns: work

start_workStart workA

Create a new work, generate a short work id, persist work metadata, and mark it as the active work for this session.

Inputs: title (required), tags, impact, summary, +2 more. Returns: work, project_root, artifact_paths

update_log_statusUpdate log statusA

Change only the lifecycle status of an existing log entry without rewriting its summary.

Inputs: log_id (required), status (required). Returns: entry

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 17 tools

    Disambiguation3/5

    Most tools target a distinct resource+action, but several clusters overlap: create_design_doc/create_plan_doc/create_spec_doc/create_summary_doc are the same operation differing only by filename/template, and get_open_threads explicitly duplicates list_works(status="open"). set_work_status vs update_log_status (work vs log entity) also requires careful reading of descriptions to disambiguate.

    Naming Consistency5/5

    Every tool follows a consistent snake_case verb_noun pattern (get_active_context, list_works, start_work, append_session_log, amend_log_metadata), with the resource always named after the verb. Verb choices (get/read, start/resume/create) vary but map to genuinely different operations rather than stylistic drift.

    Tool Count3/5

    17 tools is on the heavy side for a work-logging server, and the surface is inflated by four near-duplicate doc-creation tools plus one deprecated compatibility tool. The core work/log/doc areas each justify their tools, but a doc_type parameter and removing the deprecated entry would bring this to a tight ~11-tool set.

    Completeness3/5

    Core lifecycle is covered (start, resume, list, status/impact updates, context read, log append/amend/status, workdoc creation) with no dead-end for the happy path. However there is no delete/archive of work items, no way to update a work's title/scope after creation, no log search, and the workdoc tools are create-only with no read or edit-content counterpart.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Persistent memory and task coordination for AI coding agents. Tracks sprint items, logs tasks, manages session handoffs, and surfaces HITL requests so you stay in control across single or parallel Claude Code, Codex, Cursor, and Windsurf sessions.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to persist and resume shared working state—tasks, progress, decisions, commands, tests, checkpoints, and handoffs—backed by SQLite while keeping Git authoritative for files and repository state.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to record and resume engineering work as durable, byte-exact threads of focus, decisions, evidence, and next steps.
      4
      30
      4
      Functional Source , Version 1.1, ALv2 Future
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to open and update session work, report goals, tasks, blockers, outcomes, and subagent contributions, and resume compact context after interruptions. A local dashboard then visualizes multiple sessions and live updates without requiring additional model calls.
      MIT