Skip to content

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

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

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

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

Copy link
Copy Markdown

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.

kriszyp added a commit that referenced this pull request Jun 11, 2026
The release-notes and reference doc plugins are separate; relative .md
links between them resolve incorrectly. Removing until PR #507 (MCP
reference section) merges and can be linked with an absolute path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
kriszyp added a commit that referenced this pull request Jun 13, 2026
* docs(v5.1): release notes, deployment tracking ops, deploy_component updates

- Add 5.1.md release notes covering: models/AI, @embed directive, MCP server,
  deployment tracking, HNSW int8 quantization, and replication improvements
- Update deploy_component docs: urlPath, install_allow_scripts params, deployment_id response
- Document new deployment operations: list_deployments, get_deployment,
  get_deployment_payload, delete_deployment_payload
- Document hdb_deployment record schema (fields, phases, peer_results)

Note: models/AI detail, MCP reference, and HNSW quantization have separate PRs
(#523, #507/#516, #508) — this PR adds the release notes overview and the
deployment tracking operations which had no coverage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* style: run prettier on changed files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: remove cross-plugin MCP link that breaks Docusaurus build

The release-notes and reference doc plugins are separate; relative .md
links between them resolve incorrectly. Removing until PR #507 (MCP
reference section) merges and can be linked with an absolute path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs(5.1): expand release notes — middleware/routing, caching, LOCAL_ONLY, HARPER_CONFIG, RocksDB, migrateOnStart, upgrade improvements

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@kylebernhardy kylebernhardy marked this pull request as ready for review June 14, 2026 03:25
@kylebernhardy kylebernhardy requested a review from a team as a code owner June 14, 2026 03:25
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