Skip to content

docs(reference): MCP section (built-in v5.1 server)#507

Draft
kylebernhardy wants to merge 5 commits into
mainfrom
feat/mcp-section
Draft

docs(reference): MCP section (built-in v5.1 server)#507
kylebernhardy wants to merge 5 commits into
mainfrom
feat/mcp-section

Conversation

@kylebernhardy
Copy link
Copy Markdown
Member

Summary

New MCP reference section covering the first-class built-in MCP server that landed in v5.1. Five docs under reference/mcp/:

  • Overview — protocol versions, two profiles (operations + application), capabilities, what's deferred to v1.1+.
  • Configuration — every knob under mcp.operations, mcp.application, mcp.session in the established Type/Default/Description format. Documents the rationale for the narrower-than-expected default-allow list (explicit safe getters instead of get_* glob).
  • CLIharper mcp subcommands (bridge / print-config / doctor), UDS vs network connect modes, credential precedence including the saved-JWT fallback from harper login. Paste-ready client config blocks for Claude Desktop, Cursor, Zed.
  • Tools and Resources — how tools are generated on each profile (operation-map walker for operations, Resources walker with attribute_permissions narrowing and exportTypes.mcp gating for application), the harper:// + https:// resources surface, and notifications/*/list_changed semantics including the per-session re-resolution behavior.
  • Migration — stepwise migration from the deprecated HarperFast/mcp-server external addon to the built-in server.

Wired into sidebarsReference.ts as a new top-level MCP category between HTTP and Security.

Where to look

  • reference/mcp/configuration.md — the parameter tables drive Type/Default values directly from validation/configValidator.ts in harper. Worth a sanity check that defaults match.
  • reference/mcp/tools-and-resources.md — the get_* rationale and the application-profile generation rules are the load-bearing content; please confirm the framing matches the implementation as merged in #856 + #888.
  • sidebarsReference.ts — only adds a new category; doesn't reshuffle existing entries.

Companion PR

This documents the work merged in HarperFast/harper#856 (server-side tools surface) and being reviewed in HarperFast/harper#888 (CLI + follow-ups). Best read alongside.

Test plan

  • npm run build clean (376 documents processed).
  • npm run format:write clean.

🤖 Generated with Claude Code

Documents the v5.1 first-class built-in MCP server, covering:

- Overview: protocol versions, the two profiles (operations + application),
  capability surface
- Configuration: every knob under mcp.operations / mcp.application /
  mcp.session with Type/Default/Description in the established format
- CLI: harper mcp bridge / print-config / doctor subcommands, UDS vs
  network connect modes, credential precedence including saved-JWT
  fallback from harper login
- Tools and Resources: how operations-profile tools are generated from
  OPERATION_FUNCTION_MAP, why get_* is NOT a default-allowed glob,
  application-profile Resource walker rules including attribute_permissions
  narrowing and exportTypes.mcp gating, harper:// + https:// resources
  surface, listChanged notification semantics
- Migration: stepwise migration from the deprecated HarperFast/mcp-server
  external addon to the built-in MCP server

Wired into sidebarsReference.ts as a new top-level MCP category between
HTTP and Security.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@kylebernhardy kylebernhardy requested a review from kriszyp May 30, 2026 21:34
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces comprehensive documentation for the new built-in Model Context Protocol (MCP) support in Harper (v5.1.0), covering its overview, configuration, CLI, tools and resources, and migration steps, along with sidebar updates. The review feedback provides minor but helpful suggestions to improve the documentation's clarity, grammar, and navigation, such as adding internal markdown links and refining phrasing.

Comment thread reference/mcp/cli.md Outdated
Comment thread reference/mcp/tools-and-resources.md Outdated
Comment thread reference/mcp/tools-and-resources.md Outdated
Comment thread reference/mcp/overview.md Outdated
@github-actions github-actions Bot temporarily deployed to pr-507 May 30, 2026 21:37 Inactive
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-507

This preview will update automatically when you push new commits.

kylebernhardy and others added 4 commits May 31, 2026 16:44
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-507

This preview will update automatically when you push new commits.

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