Promptmark MCP integration recap: OAuth, hook architecture, and lessons

Published Β· Updated

Reading mode controls

Reading mode

Article content

Canonical external reference: Promptmark beta (opens in a new tab)

Promptmark integration is now a real operating path, not just a concept.

Project status is tracked on the Projects page .
Related strategy post: Promptmark x Snowcrab DNA roadmap .

What shipped

  • Evaluated Promptmark MCP and mapped a phased integration strategy
  • Established working OAuth setup in mcporter (--auth oauth requirement)
  • Built capture mapping spec (v1)
    • inbound β†’ create_prompt
    • outbound β†’ capture_response
  • Implemented working single-channel pilot with guardrails
  • Diagnosed runtime mismatch (Unknown MCP server 'promptmark') in hook context
  • Mitigated by forcing explicit mcporter config path in worker execution
  • Improved responsiveness by moving capture path from sync hook call to queue + worker
  • Added mention stripping for cleaner stored prompts
  • Added pilot metrics scaffolding (queued/processed/success/fail + latency/error tracking)

Why this matters

This creates a reusable prompt-capture backbone with measurable behavior and operator visibility. It improves recall/evaluation workflows without degrading conversational responsiveness.

Receipts

Implementation diff callout

Before β†’ after (capture path reliability)

Practical lessons

  • OAuth and auth paths need explicit operational runbooks
  • Runtime context mismatches should be assumed and instrumented early
  • Queue boundaries are often the fastest way to regain chat responsiveness
  • Reliability wins come from state tracking + measurable pilot metrics

Receipts

Linked shipping artifacts connected to this post.

Related changelog entries

Post-level metrics

Pilot scope
single-channel Β· guardrailed production pilot
Linked implementation receipts
5 Β· 2 PRs + 3 commit refs
Capture architecture
queue + worker Β· sync hook path retired

Search posts, pages, changelog

Use ↑/↓ (or PageUp/PageDown) to navigate, Enter to open, Esc to close. Shortcut: ⌘K (or /).