venafi-connector-machine
v1.0.5
Published
MCP server providing machine connector-specific knowledge, templates, and tools for building Venafi TLS Protect Cloud machine connectors
Maintainers
Readme
venafi-connector-machine
An MCP (Model Context Protocol) server that provides machine connector-specific knowledge, templates, and tools for building Venafi TLS Protect Cloud machine connectors.
Use this with Claude Code or any MCP-compatible AI assistant to get expert guidance on SSH and REST API machine connectors — discovery, provisioning, manifest design, and all the gotchas.
What's Inside
| Tool | Description |
|---|---|
| get_machine_manifest | Complete machine connector manifest.json template with all sections explained |
| get_machine_domain_types | Go domain types: Connection, Keystore, Binding, CertificateBundle, Client |
| get_machine_endpoints | Handler and service interface templates for all 5 endpoints |
| get_machine_best_practices | 28+ lessons learned from building production connectors |
| get_ssh_client_pattern | SSH client abstraction: Connect, RunCommand, WriteFile, ReadFile |
| get_rest_client_pattern | REST API client: multi-auth, 3-service decomposition, uber/fx DI |
5 Machine Connector Endpoints
| Endpoint | Purpose |
|---|---|
| testConnection | Validate connectivity to the target system |
| discoverCertificates | Find certificates on the target (paginated) |
| installCertificateBundle | Write cert + chain + key to the target |
| configureInstallationEndpoint | Apply the certificate (restart service) |
| getTargetConfiguration | Return target system info for dynamic UI dropdowns |
28 Lessons Learned
Covering SSH and REST API patterns from all machine connector projects:
- DER→PEM conversion, DER→PKCS12 conversion, key type detection
- Discovery pagination,
discoveryPage: nullvs{}, responsemessageskey x-primaryKeyUI visibility, empty values causing silent MI drops- OAuth2 token exchange (JSON vs form-urlencoded body formats)
- Null-safe JSON arrays, binding must never be nil
- Discovery label rules (
titlevsx-labelLocalizationKey) - Per-profile enrichment patterns, retired certificate handling
- And more...
Setup
Quick Install (Claude Code CLI)
# Add to your project
claude mcp add venafi-connector-machine -- npx -y venafi-connector-machine
# Best used alongside the core MCP
claude mcp add venafi-connector-core -- npx -y venafi-connector-core
claude mcp add venafi-connector-machine -- npx -y venafi-connector-machineManual Setup
Alternatively, add to your project's .claude/settings.json:
{
"mcpServers": {
"venafi-connector-core": {
"command": "npx",
"args": ["-y", "venafi-connector-core"]
},
"venafi-connector-machine": {
"command": "npx",
"args": ["-y", "venafi-connector-machine"]
}
}
}Built From Experience
Knowledge extracted from building these machine connectors:
| Connector | Connection | Key Patterns | |---|---|---| | Splunk | SSH | Combined PEM, heredoc file writing, systemctl restart | | FortiGate | REST API | PKCS12 provisioning, multi-VDOM discovery, API token auth | | IBM APIC | REST API | OAuth2 token exchange, per-profile enrichment, PATCH vs PUT | | IBM DataPower | REST API | PKCS12 provisioning, REST client patterns |
Related Packages
venafi-connector-core— Shared architecture, templates, deployment, troubleshootingvenafi-connector-ca— CA connector endpoints, certificate issuance/import/revocation
License
Apache-2.0
