Skip to content

feat: persist sourceFile in MCP annotation store#188

Open
FreeWall wants to merge 1 commit into
benjitaylor:mainfrom
FreeWall:feat/source-file-to-mcp
Open

feat: persist sourceFile in MCP annotation store#188
FreeWall wants to merge 1 commit into
benjitaylor:mainfrom
FreeWall:feat/source-file-to-mcp

Conversation

@FreeWall

@FreeWall FreeWall commented Jun 5, 2026

Copy link
Copy Markdown

Summary

The browser toolbar already captures sourceFile and sends it when syncing annotations, but the MCP server dropped it on save.
This adds sourceFile persistence so agents can see the source file path.

  • Add sourceFile to the MCP Annotation type
  • Store it in SQLite via a new source_file column (schema + startup migration)
  • Map the field on insert and read in rowToAnnotation
  • Expose sourceFile in MCP tool responses via mapAnnotationForMcp
  • Update docs & schema

Related to #54, 882a827

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

@FreeWall is attempting to deploy a commit to the Benji Taylor's Projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant