|
| 1 | +# vtk-mcp — MCP Tool Reference |
| 2 | + |
| 3 | +25 tools in 5 groups. Each group lists the delegating library. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Class discovery — `vtk-knowledge` |
| 8 | + |
| 9 | +Find classes by name, keyword, or module membership. |
| 10 | + |
| 11 | +| Tool | What it does | |
| 12 | +|---|---| |
| 13 | +| `vtk_is_a_class(class_name)` | Returns true if the name is a known VTK class | |
| 14 | +| `vtk_search_classes(query, limit)` | Substring search across all class names | |
| 15 | +| `vtk_get_class_module(class_name)` | Returns the `vtkmodules.*` import path | |
| 16 | +| `vtk_get_module_classes(module)` | Lists all classes in a given module | |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## Class documentation — `vtk-knowledge` |
| 21 | + |
| 22 | +Retrieve metadata about a specific class. |
| 23 | + |
| 24 | +| Tool | What it does | |
| 25 | +|---|---| |
| 26 | +| `get_vtk_class_info_python(class_name)` | Full record: module, methods, role, datatypes, synopsis | |
| 27 | +| `vtk_get_class_doc(class_name)` | Raw class docstring | |
| 28 | +| `vtk_get_class_synopsis(class_name)` | One-sentence LLM-generated summary | |
| 29 | +| `vtk_get_class_action_phrase(class_name)` | Short noun-phrase for the class's primary action | |
| 30 | +| `vtk_get_class_role(class_name)` | Pipeline role: source, filter, mapper, output, utility, etc. | |
| 31 | +| `vtk_get_class_input_datatype(class_name)` | Expected input data type (e.g. `vtkPolyData`) | |
| 32 | +| `vtk_get_class_output_datatype(class_name)` | Produced output data type | |
| 33 | +| `vtk_get_class_visibility(class_name)` | Score 0.0–1.0 for how often this class is used directly | |
| 34 | +| `vtk_get_class_methods(class_name)` | All methods with signatures | |
| 35 | +| `vtk_get_class_semantic_methods(class_name)` | Non-boilerplate methods only | |
| 36 | + |
| 37 | +--- |
| 38 | + |
| 39 | +## Method documentation — `vtk-knowledge` |
| 40 | + |
| 41 | +Drill into a specific method on a specific class. |
| 42 | + |
| 43 | +| Tool | What it does | |
| 44 | +|---|---| |
| 45 | +| `vtk_get_method_info(class_name, method_name)` | Full method record: signatures + docstring | |
| 46 | +| `vtk_get_method_doc(class_name, method_name)` | Docstring only | |
| 47 | +| `vtk_get_method_signature(class_name, method_name)` | Canonical signature string only | |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +## Validation — `vtk-validate` |
| 52 | + |
| 53 | +Check VTK Python code or imports for API mistakes. |
| 54 | + |
| 55 | +| Tool | What it does | |
| 56 | +|---|---| |
| 57 | +| `validate_vtk_code(source)` | Full AST check: imports, constructors, methods, ordering, security — returns a `ValidationReport` | |
| 58 | +| `vtk_validate_import(import_statement)` | Validates a single import line and suggests the correct module | |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +## Semantic search — `vtk-index` (Qdrant) |
| 63 | + |
| 64 | +Retrieve relevant documentation or code by meaning, not by exact name. |
| 65 | + |
| 66 | +| Tool | What it does | |
| 67 | +|---|---| |
| 68 | +| `vector_search_docs(query, k)` | Hybrid dense+BM25 search over documentation chunks | |
| 69 | +| `vector_search_examples(query, k)` | Hybrid dense+BM25 search over VTK code example chunks | |
| 70 | + |
| 71 | +--- |
| 72 | + |
| 73 | +## C++ documentation — vtk.org scraper (self-contained) |
| 74 | + |
| 75 | +Live HTML scraping of the VTK C++ API docs. No offline artifact required. |
| 76 | + |
| 77 | +| Tool | What it does | |
| 78 | +|---|---| |
| 79 | +| `get_vtk_class_info_cpp(class_name)` | Fetches class info from vtk.org C++ docs | |
| 80 | +| `search_vtk_classes_cpp(search_term)` | Searches class names in the C++ docs | |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +## Meta — `vtk-mcp` itself |
| 85 | + |
| 86 | +| Tool | What it does | |
| 87 | +|---|---| |
| 88 | +| `vtk_version_info()` | Returns the loaded VTK version, class count, and which capabilities are enabled | |
0 commit comments