Skip to content

Run 1: hypothesis-mcp Extension

Extend the hypothesis-mcp server to support target with CssSelector in createAnnotation, enabling W3C Web Annotation-compliant DOM-element annotations.

  • Repository: /hypothesis-mcp
  • Base branch: main (ensure up-to-date with origin/main)
  • Working branch: jmpicnic/integrate-agentation-hypothesis
  • Worktree: Not needed (single agent, single repo)
#CriterionVerification CommandExpected Output
1hypothesis-mcp main is up-to-date with origingit -C /Users/jmp/code/arda/hypothesis-mcp fetch origin && git -C /Users/jmp/code/arda/hypothesis-mcp diff main origin/main --statNo output (no diff)
2All existing tests passcd /Users/jmp/code/arda/hypothesis-mcp && npm testAll tests pass
3Working branch does not already existgit -C /Users/jmp/code/arda/hypothesis-mcp branch --list jmpicnic/integrate-agentation-hypothesisEmpty output
#TaskPersonaDepends OnStatusAcceptance Criteria
1.1Update main from origin and create working branchback-endPendingBranch exists, based on latest main
1.2Extend RawSelector in types.ts with value?: string fieldback-end1.1Pendingvalue field available for CssSelector
1.3Add optional target parameter to createAnnotation in client.tsback-end1.2PendingWhen target is provided, it is included in POST body; when absent, existing behavior preserved
1.4Add unit tests for target/CssSelector in client.test.tsback-end1.3PendingTests cover: target with CssSelector, target with TextQuoteSelector, target omitted (backward compat)
1.5Update CHANGELOG.md with new version entryback-end1.4Pendingv1.3.0 entry documenting target parameter support
1.6Run all checks, commit, push, create PRback-end1.5Pendingnpm test passes, npx tsc --noEmit passes, PR created targeting main
1.7Monitor PR (10-minute wait), handle check failures and reviewer commentsback-end1.6PendingPR checks green; reviewer comments addressed per user guidance

All tasks are sequential (1.1 → 1.2 → 1.3 → 1.4 → 1.5 → 1.6 → 1.7). No parallelization within this run.

#CriterionVerification CommandExpected Output
1All tests passcd /Users/jmp/code/arda/hypothesis-mcp && npm testAll tests pass
2TypeScript compilescd /Users/jmp/code/arda/hypothesis-mcp && npx tsc --noEmitNo errors
3PR created and checks passinggh pr list -R Arda-cards/hypothesis-mcp --head jmpicnic/integrate-agentation-hypothesis --json state,statusCheckRollupPR exists, checks passing
4CHANGELOG updatedgrep -c 'v1.3.0|1.3.0' /Users/jmp/code/arda/hypothesis-mcp/CHANGELOG.mdAt least 1 match

You are working in /Users/jmp/code/arda/hypothesis-mcp.

Goal: Extend the createAnnotation function to support an optional target parameter with W3C Web Annotation selectors (CssSelector, TextQuoteSelector).

Base branch: main (pull latest from origin first). Working branch: jmpicnic/integrate-agentation-hypothesis

Tasks: See Run 1 task list in the project plan.

Specification: Read /documentation/src/content/docs/roadmap/completed/integrate-agentation-hypothesis/specification.md, Component 6.

PR workflow: After pushing, create a PR. Wait 10 minutes, then check for:

  • Check failures: fix them.
  • Reviewer comments: Present the user with a numbered table summarizing each comment and your recommendation. Fix comments the user approves, then reply to all and resolve threads.

CHANGELOG: Update with a v1.3.0 entry before committing.

None — this is the first run.

ArtifactConsumer RunPath
Extended createAnnotation API contractRun 2 (ux-prototype bridge)/hypothesis-mcp/src/client.ts
Merged PR on mainRun 2 (optional — bridge works without it)Arda-cards/hypothesis-mcp repo