---
title: thv vmcp validate
hide_title: true
description: Reference for ToolHive CLI command `thv vmcp validate`
last_update:
  author: autogenerated
slug: thv_vmcp_validate
mdx:
  format: md
---

## thv vmcp validate

Validate a vMCP configuration file

### Synopsis

Validate the vMCP configuration file for syntax and semantic errors.

This command checks YAML syntax, required field presence, middleware
configuration correctness, and backend configuration validity. Exits 0
for valid configurations, non-zero with a descriptive error otherwise.

```
thv vmcp validate [flags]
```

### Options

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

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv vmcp](thv_vmcp.md)	 - Run and manage a Virtual MCP Server locally

