mcp-hcl
v0.5.0Agent-neutral MCP server for strict offline HCL planning, artifacts and gated control
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hcl_capabilities
Describe verified capabilities and the activation boundary.
hcl_list_devices
List installed HCL model defaults, with file evidence and firmware boundaries.
hcl_get_device_details
Read one installed model's default interfaces; never claim guest CLI verification.
| Parameter | Type | Description |
|---|---|---|
model * | string |
hcl_validate_plan
Validate intent and, by default, require a connected declared wired topology. Use Comware interface names, not .net scene port keys. Validation does not prove firmware support, deployment or actual network connectivity. configuration checks individual intents without requiring one wired component.
hcl_parity_report
Read the pinned mapping and API differences against current MCP discovery.
hcl_bridge_status
Probe the local HCL backend; never infer GUI or CLI control from it.
hcl_stage_copy
Create an isolated HCL project for safe live-gate verification.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
stage_name * | string | |
idempotency_key |
hcl_list_projects
List HCL projects immediately under configured project roots.
hcl_inspect_project
Read devices and links from one saved HCL project without changing it.
| Parameter | Type | Description |
|---|---|---|
project_path * | string |
hcl_stage_add_device
Copy a project, add a device cloned from a known model, and optionally link it.
| Parameter | Type | Description |
|---|---|---|
new_name * | string | |
project_path * | string | |
stage_name * | string | |
template_device * | string | |
x * | number | |
y * | number | |
connect_to | ||
connect_to_port | ||
idempotency_key | ||
new_port |
hcl_stage_link
Copy a project and add a reciprocal link between two free ports.
| Parameter | Type | Description |
|---|---|---|
a * | string | |
a_port * | string | |
b * | string | |
b_port * | string | |
project_path * | string | |
stage_name * | string | |
idempotency_key |
hcl_backend_capabilities
List the observed backend verbs, their evidence level and gating state. Read-only and offline: it never opens a socket. The verb list comes from HCL's own logs, not from vendor documentation.
hcl_backend_topology
Open, inspect or close the backend topology session (state-changing). The wrapper keys its topology to the **connection**, so opening keeps one connection alive and reuses it for ``hcl_device_power``. At most one session is held at a time. ``action`` is ``open``, ``close`` or ``status``. ``open`` needs ``topology`` and a ``working_directory`` inside a configured project root.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
project_name | ||
topology | ||
udp_port | integer | |
working_directory |
hcl_device_power
Power one device on through the observed backend verb (gated). Requires an open session from ``hcl_backend_topology``: the wrapper keys the topology to the connection, so a one-shot request is answered with ``errorCode=228``. Only power-on was observed - no stop verb exists in the logs, so ``on=False`` is reported as unsupported rather than guessed.
| Parameter | Type | Description |
|---|---|---|
device * | integer | |
on | boolean |
hcl_console_exec
Send one line to a device console over HCL's telnet bridge (gated). Supply either ``pipe`` (``\\.\pipe\<topology>-device<N>`` or ``telnet://127.0.0.1:<30001..31024>``) or ``topology`` plus ``device``; the default endpoint for a topology is the telnet bridge HCL publishes for that device. Output that arrived before the command is drained and reported as ``discarded_stale_bytes`` so stale console text cannot be mistaken for this request's answer.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
device | ||
expect | ||
pipe | ||
topology |
hcl_stage_plan
Compile a validated plan into a separate .net project using real source models. Replaces source devices/notes in the copy. Every linked CLI port needs an explicit model-to-scene map. Command transcripts stay outside startup configs. No GUI open, VM creation, power, CLI deployment or connectivity is claimed by a staged result.
hcl_list_modules
Read the documented native NIC mode and fixed profiles; model compatibility is unverified.
| Parameter | Type | Description |
|---|---|---|
model |
hcl_list_templates
List deterministic HCL-native graph templates.
hcl_plan_topology
Build a deterministic plan from a strict TopologyRequest; never deploy.
| Parameter | Type | Description |
|---|---|---|
request * | object |
hcl_estimate_plan
Use the same planner to count devices, links, addresses and services.
| Parameter | Type | Description |
|---|---|---|
request * | object |
hcl_explain_plan
Explain a valid saved plan and its evidence boundaries without an LLM.
hcl_fix_plan
Return a repaired copy; preserve manually supplied addresses and services.
hcl_generate_configs
Generate documented Comware templates for ten typed services, offline only.
hcl_generate_operations
Generate a declarative HCL operation manifest; executable=false until live adapters are accepted.
hcl_export_artifacts
Atomically export an offline plan/config/operation bundle under the output root.
hcl_load_plan
Hash-check and reload an exported plan; never open the HCL GUI.
| Parameter | Type | Description |
|---|---|---|
artifact_directory * | string |
hcl_open_project
Open a staged .net in an existing SimwareClient (write-gated); no guest boot or CLI deployment.
| Parameter | Type | Description |
|---|---|---|
hcl_pid * | integer | |
project_path * | string |
hcl_save_project
Verify the active staged project identity, save it and parse the saved files (write-gated).
| Parameter | Type | Description |
|---|---|---|
hcl_pid * | integer | |
project_path * | string |
hcl_full_build
Plan and compile an isolated HCL project, optionally open it in an existing GUI. activate defaults false. No VM power or CLI deployment occurs. Offline builds support durable idempotency; live activation is never replayed.
| Parameter | Type | Description |
|---|---|---|
port_map * | object | |
project_path * | string | |
request * | object | |
stage_name * | string | |
activate | boolean | |
hcl_pid | ||
idempotency_key |
hcl_stage_rename_device
Rename one device and both ends of its saved links in a new project copy.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
new_name * | string | |
project_path * | string | |
stage_name * | string | |
idempotency_key |
hcl_stage_move_device
Move one saved device in an isolated project copy; no live canvas mutation.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
project_path * | string | |
stage_name * | string | |
x * | number | |
y * | number | |
idempotency_key |
hcl_stage_delete_device
Remove one saved device and reciprocal links from a separate project copy.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
project_path * | string | |
stage_name * | string | |
idempotency_key |
hcl_stage_unlink
Remove exactly one reciprocal saved link from an isolated copy.
| Parameter | Type | Description |
|---|---|---|
a * | string | |
a_port * | string | |
b * | string | |
b_port * | string | |
project_path * | string | |
stage_name * | string | |
idempotency_key |
hcl_stage_add_note
Append a bounded note in the observed .net representation to a copy.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
stage_name * | string | |
text * | string | |
x * | number | |
y * | number | |
idempotency_key |
hcl_stage_clear_annotations
Remove observed NOTE blocks only; preserve unknown drawing/Non-vBox data.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
stage_name * | string | |
idempotency_key |
hcl_backup_config
Create and test a native running-config backup for a bound staged device (gated).
| Parameter | Type | Description |
|---|---|---|
device * | string | |
project_path * | string | |
topology * | string |
hcl_restore_config
Restore a tested native backup and compare the complete running configuration (gated).
| Parameter | Type | Description |
|---|---|---|
backup_id * | string | |
project_path * | string | |
topology * | string |
hcl_live_deploy
Back up all staged devices before deployment; restore modified devices on failure (gated).
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
topology * | string | |
devices |
hcl_verify_connectivity
Parse bounded actual ping statistics from a bound staged console; never infer success from exit status.
| Parameter | Type | Description |
|---|---|---|
destination * | string | |
device * | string | |
project_path * | string | |
topology * | string | |
count | integer |
hcl_inspect_ports
Read bound running-device interface state; empty device inspects all staged devices. Link/cable inventory remains unverified, so only_linked=true is rejected.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
topology * | string | |
device | string | |
only_linked | boolean |
hcl_read_vlans
Read detailed native VLAN state from one bound staged device; no default or capacity guesses.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
project_path * | string | |
topology * | string |
hcl_read_qos
Read native user-defined traffic classes, behaviors and policies from one bound device.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
project_path * | string | |
topology * | string |
hcl_diff
Compare planned addresses with freshly bound guest observations. Missing/extra live devices and a positive in_sync remain unknown until an authoritative native topology inventory is available.
hcl_health_check
Read interface anomalies and repeated addresses from staged running guests. Carrier state does not prove cabling; healthy remains unknown.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
topology * | string | |
include_ipv6 | boolean | |
timeout_seconds | integer |
hcl_audit_security
Audit bound running Comware configuration posture without exporting credentials. Empty device selects staged non-PC bindings, not a complete native canvas inventory. Unsupported Cisco rules and unknown storage algorithms prevent a secure=true verdict.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
topology * | string | |
device | string | |
timeout_seconds | integer |
hcl_apply_netstream
Apply/remove a scoped NetStream destination with local exporter-name identity. Named NetFlow monitor/object equivalence and actual collector delivery remain unverified.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_stp
Apply per-VLAN rapid spanning-tree priority and selected edge/guard intent. Native PVST, root-selection and global BPDU protection are not full IOS equivalence claims.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_port_security
Apply bounded secure-MAC/shutdown intent on one existing access port. Refuses unproved IOS protect/restrict mappings and unrequested authentication or learned-state conversion.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_interface_tuning
Tune requested interface bandwidth and OSPF fields with scoped readback and saved recovery. Serial clock and IOS delay mappings remain unavailable; encrypted authentication values are partial. Secrets are omitted from operation receipts and previews.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_nat
Apply static, dynamic or interface/pool PAT intent to one staged router. Uses recorded ACL/pool identities, bounded backup/readback/persistence and same-VM recovery. Comware outbound semantics and pool ranges do not prove IOS ingress-role/netmask equivalence.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_remove_nat
Remove exact NAT mappings, binding and optional unshared ACL/pool resources. Reused operation keys return recorded receipts without replaying device commands.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_remove_acl
Remove one exact numbered/named ACL and optional IPv4 binding with backup, scope and startup readback. Named types may be resolved from the actual config; unrelated definitions and bindings remain protected.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_vlan_network
Apply scoped VLAN/access/trunk/router subinterface changes across staged devices. All targets and backups precede changes; persistence and recovery stay bound to each VM.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_acl
Apply one strict Comware numbered or named ACL after identity, backup and restore preflight. Changes only requested rules/bindings; readback and unrelated scope checks are mandatory.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |
hcl_apply_vlan
Apply strict single-device VLAN/port/SVI intent with backup, readback and recovery. Native trunk membership is replaced with the exact requested allowed VLAN set.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
parameters * | object | |
project_path * | string | |
topology * | string | |
dry_run | boolean |