Skip to content

Add local mode guide for thv vmcp CLI commands - #787

Closed
yrobla wants to merge 1 commit into
mainfrom
docs-vmcp-cli
Closed

Add local mode guide for thv vmcp CLI commands#787
yrobla wants to merge 1 commit into
mainfrom
docs-vmcp-cli

Conversation

@yrobla

@yrobla yrobla commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Description

Documents running Virtual MCP Server locally without Kubernetes using thv vmcp serve, thv vmcp init, and thv vmcp validate. Covers quick mode (zero-config, single flag), config file mode, and all major config sections: backends, conflict resolution, incoming/outgoing auth, optimizer tiers, composite tools, and Redis session storage. Includes full CLI flag reference for all three subcommands.

Updates the vMCP index page to surface the local mode option and adds the new page to the sidebar after the Kubernetes quickstart.

Type of change

  • New documentation

Related issues/PRs

Screenshots

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Navigation

  • New pages include a frontmatter section with title and description at a minimum
  • Sidebar navigation (sidebars.ts) updated for added, deleted, reordered, or renamed files
  • Redirects added to vercel.json for moved, renamed, or deleted pages (i.e., if the URL slug changed)

Reviewer checklist

Content

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Documents running Virtual MCP Server locally without Kubernetes using
`thv vmcp serve`, `thv vmcp init`, and `thv vmcp validate`. Covers quick
mode (zero-config, single flag), config file mode, and all major config
sections: backends, conflict resolution, incoming/outgoing auth, optimizer
tiers, composite tools, and Redis session storage. Includes full CLI flag
reference for all three subcommands.

Updates the vMCP index page to surface the local mode option and adds the
new page to the sidebar after the Kubernetes quickstart.
Copilot AI review requested due to automatic review settings April 22, 2026 13:40
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Apr 22, 2026 1:40pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new vMCP documentation page describing how to run Virtual MCP Server locally via thv vmcp (serve/init/validate), and updates vMCP navigation to surface this “local mode” path alongside the existing Kubernetes quickstart.

Changes:

  • Add a new “Run vMCP locally with the CLI” guide covering quick mode, config mode, and config sections.
  • Update the vMCP index page to link to the new local-mode guide.
  • Add the new page to the Virtual MCP Server sidebar section after the Kubernetes quickstart.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
sidebars.ts Adds the new local-mode guide to the vMCP sidebar ordering.
docs/toolhive/guides-vmcp/local-mode.mdx New local-mode (CLI) guide and config/flag reference content.
docs/toolhive/guides-vmcp/index.mdx Updates the “Where to start” section to include the local-mode option.

```

This starts a vMCP server on `127.0.0.1:4483` that aggregates all servers in the
group `my-group`. The server is accessible only from localhost — quick mode does

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

Avoid using em dashes (—) in docs per repo writing guidelines. Rephrase this sentence using commas/parentheses or split into two sentences.

Suggested change
group `my-group`. The server is accessible only from localhost — quick mode does
group `my-group`. The server is accessible only from localhost. Quick mode does

Copilot uses AI. Check for mistakes.
tokens sent to the LLM on each request and improves tool selection across many
backends.

**Tier 1 — keyword search** (no extra dependencies):

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

Avoid using em dashes (—) in headings; the writing guidelines recommend rephrasing or using a hyphenated alternative.

Suggested change
**Tier 1 keyword search** (no extra dependencies):
**Tier 1 - keyword search** (no extra dependencies):

Copilot uses AI. Check for mistakes.
optimizer: {}
```

**Tier 2 — semantic search** (requires Docker; starts a TEI container

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

Avoid using em dashes (—) in headings; the writing guidelines recommend rephrasing or using a hyphenated alternative.

Suggested change
**Tier 2 semantic search** (requires Docker; starts a TEI container
**Tier 2 - semantic search** (requires Docker; starts a TEI container

Copilot uses AI. Check for mistakes.
request. Set `insecureAllowHttp: true` and `jwksAllowPrivateIp: true` only when
testing against a local OIDC server.

For the full set of OIDC fields see [Authentication](./authentication.mdx).

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

This says the Authentication page contains the full set of OIDC fields, but that page documents the Kubernetes CRD flow and does not describe the CLI config keys mentioned here (e.g., insecureAllowHttp, jwksAllowPrivateIp). Update the link text or add a dedicated reference for the CLI config fields so readers aren’t sent to a page that doesn’t cover them.

Suggested change
For the full set of OIDC fields see [Authentication](./authentication.mdx).
For general vMCP authentication and Kubernetes-based OIDC configuration, see
[Authentication](./authentication.mdx). The local CLI configuration supports the
fields shown above, including the local-testing flags.

Copilot uses AI. Check for mistakes.
Comment on lines +323 to +332
## thv vmcp validate reference

```
Usage:
thv vmcp validate [flags]

Flags:
-c, --config string Path to vMCP configuration file (required)
-h, --help Help for validate
```

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

This page is a how-to guide but it ends without a "Next steps" section. The repo’s doc standards require 1–3 links to the next logical pages so readers know where to go next (for example: Configuration, Authentication, or Optimize tool discovery).

Copilot uses AI. Check for mistakes.
@yrobla
yrobla marked this pull request as draft April 22, 2026 14:19
@rdimitrov

Copy link
Copy Markdown
Member

Closing as superseded (if needed we can file a follow up)

@rdimitrov rdimitrov closed this Apr 22, 2026
@danbarr
danbarr deleted the docs-vmcp-cli branch April 30, 2026 22:53
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.

3 participants