autotask-mcp
CLAUDE.md57 starsChanged 14 months agoApache-2.0View on GitHub
Task management: Task Master (task-master CLI; config in .taskmaster/). Workflow defaults (commits, changelog, memory) come from the global ~/.claude/CLAUDE.md. Verified live against production on 2026-09-07, correcting an earlier version of this entry that generalized #193's silent-drop behaviour to unknown field names too. Either way the filter is broken, so when touching one, assert on the query body actually sent rather than on the return value — a test that only checks results passes against both failure modes.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .taskmaster/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
Files
autotask-mcp
Task management: Task Master (task-master CLI; config in .taskmaster/).
Workflow defaults (commits, changelog, memory) come from the global ~/.claude/CLAUDE.md.
Learnings
<!-- Record non-obvious discoveries as dated entries: "## Learnings - YYYY-MM-DD" -->Learnings - 2026-08-10
- Issue asks can be stale: #237 claimed "no Contracts tools" but search/create/update already existed (added after the issue was filed). Always scope against
src/handlers/tool.definitions.tsbefore implementing "missing" tools. TOOL_CATEGORIESintool.definitions.tsis hand-maintained and drifts fromTOOL_DEFINITIONS— nothing enforces parity (the contract write tools were absent fromfinancialfor months). A parity test would prevent this class of drift.- The intent router's entity regexes (
tool.handler.tsrouteIntent) matched only singular nouns (\bcontract\bmissed "contracts") until #238 addeds?; check the other entity branches if router misses are reported. exactOptionalPropertyTypesis on: optional result-object fields need explicit| undefinedin their type when assigned from possibly-undefined sources.
Learnings - 2026-09-07
- Auditing
childCreate()call sites: every Autotask entity doc page carries a Parent Entity field, and the Tasks page states the rule — "If this entity has a Parent relationship, you must perform all Create, Update, and Delete actions on the parent entity." That field is the discriminator for whetherPOST /{Parent}/{id}/{Child}exists. TimeEntries says Parent: None, so its child routes never existed and every ticket-scoped time entry 404'd (#277). Audited all otherchildCreatecallers at that time — all have documented parents. - Never add a 404 →
POST /{Child}fallback insidechildCreate(). On a write, a 404 is ambiguous between "route doesn't exist" and "parent id doesn't exist", so a silent retry turns "project 12345 doesn't exist" into a successfully created, mis-scoped record.childQuery's 404 → GET fallback is safe only because it's an idempotent read; do not extend that precedent to writes. - Removing a parameter from a tool's
inputSchemadoes not stop callers sending it. There is no zod/ajv layer,additionalPropertiesis alwaystrue, andtool.handler.tspasses the whole args object into the service. Deprecating a parameter needs an explicit guard at the top of the handler closure (before any network call). Two now exist (projectIDon create,projectIdon search time entries) — if a third becomes necessary, that's the signal to addadditionalProperties: falseplus real validation instead of anotherif. A bad query clause fails differently depending on which half is wrong, and the difference decides how dangerous it is:
- Bad operator → silently dropped.
{ op: 'ne', … }(no such operator; it'snoteq) was discarded and the call returned everything, reading as a filtered result. That's #193 — wrong data, no error. - Bad field name → hard error.
{ op: 'eq', field: 'projectID' }againstTimeEntriesreturnsHTTP 500: Unable to find projectID in the TimeEntry Entity. That's #277 — loud, and comparatively safe.
Verified live against production on 2026-09-07, correcting an earlier version of this entry that generalized #193's silent-drop behaviour to unknown field names too. Either way the filter is broken, so when touching one, assert on the query body actually sent rather than on the return value — a test that only checks results passes against both failure modes.
- Bad operator → silently dropped.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

