worklog-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@worklog-mcp Log my work for this session: fixed auth bug, why I chose JWT, open loops."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
worklog-mcp
An MCP server that gives a coding agent somewhere to write down what it did and why.
Git already records what changed. What it doesn't record is the reasoning — why this approach over the alternative, what was tried and abandoned, what's still broken, which test run was green when the PR went up. That context lives in a chat transcript that nobody reads again.
This server gives the agent six tools to record it as it works. By default it appends JSONL to a file in your repo. Point it at an HTTP endpoint and it posts there instead.
// .mcp.json
{
"mcpServers": {
"worklog": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:aadityakushwaha/worklog-mcp"]
}
}
}That's the whole setup. No account, no key, no server. Events land in
.worklog/events.jsonl.
Tools
Tool | When the agent calls it |
| finished something meaningful — the why and any open loops |
| made an architecturally consequential choice (ADR-style, with alternatives and consequences) |
| ran a suite — result and counts, not full logs |
| opened or merged a pull request |
| set a work item's status: |
| pushed a plan, spec, progress doc, runbook or research note as rendered markdown |
Every event carries a sessionId shared across one agent run and a unique id per
event. The agent never passes either — they're threaded automatically, so one run's
events can be grouped afterwards and a retried call can be de-duplicated by the
receiver.
Related MCP server: logbook-mcp
Configuration
Variable | Default | Meaning |
|
| Where to append when there's no receiver |
| — | If set, POST events here instead of writing a file |
| — | Bearer token. Required when |
Add .worklog/ to .gitignore unless you want the log committed. Some teams do —
it makes review of an agent's reasoning part of the PR.
Reading the log
It's JSONL, so the usual tools work:
# what got done, most recent first
jq -r 'select(.tool=="log_work") | "\(.at) \(.summary)"' .worklog/events.jsonl | tail -20
# every architectural decision, with its alternatives
jq 'select(.tool=="record_decision") | {title, decision, alternatives}' .worklog/events.jsonl
# anything still blocked
jq 'select(.tool=="update_progress" and .status=="blocked")' .worklog/events.jsonlSending somewhere else
Set WORKLOG_URL and every event is POSTed to <WORKLOG_URL>/api/agent/events with
Authorization: Bearer <WORKLOG_API_KEY>. The body is the event — tool, id,
sessionId when known, and the tool's own arguments:
{ "tool": "log_work", "id": "9f2c…", "sessionId": "7a10…", "summary": "…", "intent": "…" }Answer with:
{ "success": true, "data": { "sessionId": "7a10…", "eventId": "…" } }The sessionId in the first response is adopted and threaded into every later call,
so the receiver owns session identity rather than the client guessing at it. On
{ "success": false, "error": "…" } or a non-2xx, the tool call returns that error to
the agent.
That's the entire contract — a single endpoint. A receiver is an afternoon's work in whatever you already run.
Making it automatic
Logging that depends on the agent remembering to log is logging that stops after a
week. Wire it to a Stop hook so it fires at the end of every session:
// .claude/settings.json
{
"hooks": {
"Stop": [{ "matcher": "", "hooks": [{ "type": "command",
"command": "echo 'Before finishing: call log_work with what you did and why.'" }] }]
}
}Development
npm install
npm run build # tsc → dist/ (dist is committed so npx needs no build step)
npm testLicence
MIT
Available Tools
6 toolslink_prC
Link a pull request to this project's work log.
Inputs: url (required), repo (required), prNumber (required), provider (required), +2 more.
log_workA
Log a unit of work when you finish something meaningful. Capture the WHY and any open loops — git already has the diff.
Inputs: summary (required), intent, commitSha, filesTouched.
record_decisionA
Record an architecturally consequential decision (ADR-style). Only call when a real choice was made.
Inputs: title (required), decision (required), context, alternatives, +2 more.
report_test_runB
Report the outcome of a test/verify run (counts, not full logs).
Inputs: result (required), suite, failed, passed, +3 more.
sync_docA
Sync a long-form project document (plan/spec/progress/runbook/research) as rendered markdown. Upserts by (kind, key); the version bumps each sync. Use for docs an agent maintains in-repo, so the log carries their current state.
Inputs: key (required), body (required), kind (required), title (required), +1 more.
update_progressB
Upsert the current status of a work item (feature/task). Overwrites the item's status; also records the change.
Inputs: status (required), summary, blockers, nextSteps, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools target distinct actions (logging work, recording decisions, reporting test runs, linking PRs, updating progress, syncing docs). However, log_work and update_progress could be confused since both deal with work item status, though descriptions help clarify boundaries.
All tool names follow a consistent verb_noun snake_case pattern (log_work, record_decision, report_test_run, link_pr, update_progress, sync_doc). The naming is predictable and uniform, making it easy to infer function from name.
With 6 tools, the set is well-scoped for a worklog server. Each tool covers a distinct aspect of work logging without redundancy or excessive granularity, fitting comfortably within the ideal 3-15 range.
The tool set is heavily write-oriented (log, record, report, link, update, sync) but lacks any retrieval or query tools. There is no way to read/list/export the work log, which is a significant gap for a server whose purpose is to capture work history. This will likely cause agent failures when attempting to review or summarize logged work.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that automatically logs AI coding assistant activities such as command executions and code generation, saving them as JSON files for later search and analysis.325MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server for AI agents to log activities, query logs, and leave notes for each other, featuring a web UI and REST API.MIT
- AlicenseNot gradedqualityFmaintenanceA local MCP server that records completed tasks to daily JSONL files and promotes substantial work to a cumulative weekly Markdown worklog, providing persistent, searchable logs of AI-assisted productivity.MIT
- FlicenseNot gradedqualityDmaintenanceA local-first MCP server that gives AI coding agents runtime visibility and AI-managed debug logging. It replaces blind print() debugging by turning runtime execution into causal chains, allowing agents to instantly locate bugs by finding missing .success events in Python and TypeScript code. Single binary with MCP, CLI, and HTTP interfaces.-