Skip to content

docs(MCP_STANDARDS): make portable — strip Bear-specific rules#124

Merged
vasylenko merged 4 commits into
mainfrom
vasylenko/docs-mcp-standards-portable
May 13, 2026
Merged

docs(MCP_STANDARDS): make portable — strip Bear-specific rules#124
vasylenko merged 4 commits into
mainfrom
vasylenko/docs-mcp-standards-portable

Conversation

@vasylenko
Copy link
Copy Markdown
Owner

@vasylenko vasylenko commented May 13, 2026

No description provided.

The 'Mutation Response Metadata' section named Bear tools, referenced
Bear-specific helpers (`getNoteContent()`, post-create polling), and
explained Bear's fire-and-forget URL architecture as the rationale for
the 'never read after write' rule. That's project-specific content in a
doc whose stated purpose was generic MCP design conventions.

Replace it with a portable 'Mutation Response Conventions' principle:

1. Confirm the write landed (what-changed or version token).
2. Address the affected resource (stable identifier).
3. Reason about freshness for subsequent writes (version token where
   the underlying system exposes one — HTTP ETag, Core Data Z_OPT,
   document revision, etc.).

Plus a field-sourcing discipline paragraph that generalizes the
'never read after write' rule: prefer pre-write values; if a
post-write read is unavoidable, design it to wait for a *change*
(write-confirmation) and surface a clearly-labelled sentinel on
timeout rather than a possibly-stale value.

The doc now stays free of Bear-specific tool names, column names, and
helper functions so the rules can be lifted into a future MCP project
as-is. The project-specific instantiation belongs in SPECIFICATION.md
(landing as part of a follow-up PR — see end of MCP_STANDARDS for the
pointer).

Update CLAUDE.md's dev-doc index entry to match.
Copilot AI review requested due to automatic review settings May 13, 2026 16:50
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bear-notes-mcp Ready Ready Preview, Comment May 13, 2026 5:16pm

@vasylenko
Copy link
Copy Markdown
Owner Author

vasylenko commented May 13, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Doc-only refactor that generalizes docs/dev/MCP_STANDARDS.md from Bear-specific guidance into portable MCP server conventions, deferring project-specific instantiation to SPECIFICATION.md.

Changes:

  • Rewrites "Mutation Response Metadata" as a portable "Mutation Response Conventions" principle (confirm write, stable identifier, version token).
  • Generalizes the "never read after write" rule into a field-sourcing discipline paragraph with sentinel-on-timeout guidance.
  • Updates the CLAUDE.md index entry for MCP_STANDARDS.md to reflect the new portable framing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/dev/MCP_STANDARDS.md Replaces Bear-specific mutation response rules with generic MCP conventions and a portable field-sourcing principle.
CLAUDE.md Updates the dev-doc index line to match the new portable framing.

Per PR review feedback: 'Not generic — a project convention, a standard.'

The previous wording overclaimed portability. MCP_STANDARDS is not a
portable framework that could be lifted into a future MCP project as-is
— it's THIS project's standards for how we design our MCP server's tool
surface. Reframe accordingly:

- Drop 'Generic conventions ... portable: apply to any MCP server, not
  just this one'.
- Drop the trailing 'so the rules can be lifted into a future MCP
  project as-is'.
- Keep the original cleanup intent: the doc still deliberately excludes
  specific tool names, DB columns, and helper functions, because those
  belong with the implementations they describe (SPECIFICATION.md,
  BEAR_DATABASE_SCHEMA.md) — not as a portability mechanism, but as a
  separation-of-concerns mechanism that keeps the conventions easy to
  apply consistently.

Update CLAUDE.md's dev-doc index entry to match.
@vasylenko vasylenko merged commit a5ed708 into main May 13, 2026
3 of 6 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread docs/dev/MCP_STANDARDS.md
Global tag mutations (`bear-rename-tag`, `bear-delete-tag`) are not note-level and intentionally omit note metadata.

Never fetch tags or other metadata from the database after a write — Bear's fire-and-forget architecture means post-write reads return pre-mutation state, which would mislead the LLM into thinking the operation failed.
Tools are first discovered via descriptions, then invoked via schemas. Optimize both for the AI agent and the LLM, not for humans.
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.

2 participants