Skip to content

Commit 3402a8e

Browse files
describe schema.json
1 parent a86c750 commit 3402a8e

1 file changed

Lines changed: 21 additions & 11 deletions

File tree

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -360,42 +360,52 @@ HoloViz MCP supports user configuration via a YAML file, allowing you to customi
360360

361361
### Custom Configuration File
362362

363-
You can provide a custom configuration file to override or extend the default settings. By default, configuration is loaded from `~/.holoviz-mcp/config.yaml`, but you can specify a different location using the `HOLOVIZ_MCP_USER_DIR` environment variable:
363+
By default, configuration is loaded from `~/.holoviz-mcp/config.yaml`.
364+
To use a different location, set the `HOLOVIZ_MCP_USER_DIR` environment variable:
364365

365366
```bash
366367
export HOLOVIZ_MCP_USER_DIR=/path/to/your/config_dir
367368
```
368369

369370
### Adding Custom Documentation Repositories
370371

371-
To add documentation from other libraries or your own projects, edit your configuration YAML and add entries under `docs.repositories`.
372+
You can add documentation from other libraries or your own projects by editing your configuration YAML and adding entries under `docs.repositories`.
372373

373-
#### Example: Adding Plotly and Altair Documentation
374+
**Example: Adding Plotly and Altair Documentation**
374375

375376
```yaml
376377
docs:
377378
repositories:
378379
plotly:
379380
url: "https://github.com/plotly/plotly.py.git"
380-
branch: "main"
381-
folders:
382-
docs: {}
383381
base_url: "https://plotly.com/python"
384382
altair:
385383
url: "https://github.com/altair-viz/altair.git"
386-
branch: "main"
387-
folders:
388-
doc: {}
389384
base_url: "https://altair-viz.github.io"
390385
```
391386
392387
After updating your configuration:
393388
394-
- update your index (`holoviz-mcp-update`)
395-
- restart the MCP server
389+
1. Update your documentation index:
390+
```bash
391+
holoviz-mcp-update
392+
```
393+
2. Restart the MCP server.
396394

397395
Your custom documentation repositories will now be available for search and reference within HoloViz MCP.
398396

397+
### Schema Validation
398+
399+
A [`schema.json`](https://raw.githubusercontent.com/MarcSkovMadsen/holoviz-mcp/refs/heads/main/src/holoviz_mcp/config/schema.json) file is provided for configuration validation and editor autocompletion.
400+
401+
**For VS Code with [vscode-yaml](https://github.com/redhat-developer/vscode-yaml):**
402+
403+
Add this at the top of your YAML file:
404+
```yaml
405+
# yaml-language-server: $schema=https://raw.githubusercontent.com/MarcSkovMadsen/holoviz-mcp/refs/heads/main/src/holoviz_mcp/config/schema.json
406+
```
407+
This enables real-time validation and autocompletion in VS Code.
408+
399409
## 🔧 Troubleshooting
400410

401411
### Common Issues

0 commit comments

Comments
 (0)