scp-diagram-mcp-server
v1.1.9MCP server for SCP architecture diagrams, Terraform reference docs, and scpv2 resource provisioning
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_diagram
Generate a diagram from Python code using the diagrams package. This tool accepts Python code as a string that uses the diagrams package DSL and generates a PNG diagram without displaying it. The code is executed with show=False to prevent automatic display. USAGE INSTRUCTIONS: Never import. Start writing code immediately with `with Diagram(` and use the icons you found with list_icons. 1. First use get_diagram_examples to understand the syntax and capabilities 2. Then use list_icons to discover all available icons. These are the only icons you can work with.…
| Parameter | Type | Description |
|---|---|---|
code * | string | Python code using the diagrams package DSL. The runtime already imports everything needed so you can start immediately using `with Diagram(` |
filename | The filename to save the diagram to. If not provided, a random name will be generated. | |
timeout | integer | The timeout for diagram generation in seconds. Default is 90 seconds. |
workspace_dir | The user's current workspace directory. CRITICAL: Client must always send the current workspace directory when calling this tool! If provided, diagrams will be saved to a 'generated-diagrams' subdirec… |
get_diagram_examples
Get example code for different types of diagrams. This tool provides ready-to-use example code for various diagram types. Use these examples to understand the syntax and capabilities of the diagrams package before creating your own custom diagrams. USAGE INSTRUCTIONS: 1. Select the diagram type you're interested in (or 'all' to see all examples) 2. Study the returned examples to understand the structure and syntax 3. Use these examples as templates for your own diagrams 4. When ready, modify an example or write your own code and use generate_diagram EXAMP…
| Parameter | Type | Description |
|---|---|---|
diagram_type | Type of diagram example to return. Options: scp, sequence, flow, class, k8s, onprem, custom, all |
list_icons
List available icons from the diagrams package, with optional filtering. This tool dynamically inspects the diagrams package to find available providers, services, and icons that can be used in diagrams. USAGE INSTRUCTIONS: 1. Call without filters to get a list of available providers 2. Call with provider_filter to get all services and icons for that provider 3. Call with both provider_filter and service_filter to get icons for a specific service Example workflow: - First call: list_icons() → Returns all available providers - Second call: list_icons(pro…
| Parameter | Type | Description |
|---|---|---|
provider_filter | Filter icons by provider name (e.g., "scp", "k8s", "onprem") | |
service_filter | Filter icons by service name (e.g., "compute", "database", "network") |
list_terraform_resources
List available SCP Terraform resource and data-source types. This tool lists the resource and data-source types supported by the terraform-provider-samsungcloudplatformv2 provider, based on its bundled reference documentation. Use this to discover the exact type names to pass to get_terraform_examples. Returns: Dictionary with matching resource and data-source type names
| Parameter | Type | Description |
|---|---|---|
name_filter | Case-insensitive substring filter (e.g. "virtualserver", "vpc") |
get_terraform_examples
Get SCP Terraform reference docs (example HCL + attribute schema) for resource types. USAGE INSTRUCTIONS: 1. Use list_terraform_resources to find the exact type names you need. 2. Call this tool with one or more of those type names to get example HCL usage and the full attribute schema for each. 3. Use the returned examples as templates when writing Terraform configuration for SCP resources. Returns: Dictionary with doc content keyed by "<name> (resource|data-source)", and a list of any requested names that had no matching documentation
| Parameter | Type | Description |
|---|---|---|
resource_names * | string | Comma-separated SCP Terraform resource/data-source type names, with or without the "samsungcloudplatformv2_" prefix (e.g. "virtualserver_server,vpc_vpc,vpc_subnet") |
category | Limit lookup to "resource", "data-source", or "all" (default) |
scp_list_services
List the SCP services available through the scpv2 SDK. Every service exposes operations following a uniform naming convention: create_*, delete_*, list_*, show_*. Use this to discover service names, then scp_describe_operation to see the exact parameters for an operation. Returns: Dictionary with the matching service names and a count.
| Parameter | Type | Description |
|---|---|---|
name_filter | Optional case-insensitive substring filter (e.g. "vpc", "server"). |
scp_describe_operation
Describe a service's operations and their parameters. ALWAYS call this before scp_create_resource / scp_delete_resource. For a single operation the result merges three sources so you can build a valid request: - signature / required_params / optional_params / parameters: the call shape from the SDK (required_params have no default and MUST be provided) - validation: per-field constraints from the SDK -- enum allowed-values and regex patterns. Inputs that violate these are rejected by the API. - documentation.body_example: the FULL nested request body…
| Parameter | Type | Description |
|---|---|---|
service * | string | SCP service name from scp_list_services (e.g. "vpc"). |
operation | Specific operation to describe (e.g. "create_vpc"). If omitted, all operations for the service are returned. |
scp_list_resources
Read SCP resources via the scpv2 SDK. Read-only; always allowed. Only operations starting with list_/show_/get_/describe_ are permitted here. Credentials are discovered by the SDK (SCP_ACCESS_KEY/SCP_SECRET_KEY env vars or ~/.scpconf/credentials.json). Returns: Dictionary with status and the operation result.
| Parameter | Type | Description |
|---|---|---|
operation * | string | A read-only operation: list_*, show_*, get_*, or describe_* (e.g. "list_vpcs", "show_vpc"). |
service * | string | SCP service name (e.g. "vpc"). |
environment | SCP environment that, with region, determines the API endpoint host ({api}.{region}.{environment}.samsungsdscloud.com), e.g. "e" or "s". Falls back to the SCP_ENVIRONMENT env var, then the default "e"… | |
no_proxy | If true, bypass any HTTP(S) proxy and connect directly to the SCP API. Use this behind a corporate SSL-inspection proxy that causes TLS certificate verification errors. Falls back to the SCP_NO_PROXY… | |
params | Operation parameters as a JSON object (e.g. {"vpc_id": "..."}). See scp_describe_operation for the expected parameters. | |
profile_name | Credential profile name from ~/.scpconf/credentials.json (default: "default"). | |
region | SCP region (e.g. "kr-west1"). Falls back to the SCP_REGION env var. |
scp_create_resource
Create a real SCP resource via the scpv2 SDK. WRITE OPERATION: this provisions a real, billable cloud resource. It only runs when the MCP server has SCP_MCP_ALLOW_WRITE=1 set in its environment; otherwise it returns an error without doing anything. Workflow: call scp_describe_operation FIRST. Copy its documentation.body_example to build ``params`` (keep the nested structure), honor the validation rules, and resolve ID-valued fields via scp_list_resources. Required parameters are validated before the API call: if any are missing, the tool returns the missing/requir…
| Parameter | Type | Description |
|---|---|---|
operation * | string | A create operation starting with "create_" (e.g. "create_vpc"). |
service * | string | SCP service name (e.g. "vpc"). |
environment | SCP environment that, with region, determines the API endpoint host ({api}.{region}.{environment}.samsungsdscloud.com), e.g. "e" or "s". Falls back to the SCP_ENVIRONMENT env var, then the default "e"… | |
no_proxy | If true, bypass any HTTP(S) proxy and connect directly to the SCP API. Use this behind a corporate SSL-inspection proxy that causes TLS certificate verification errors. Falls back to the SCP_NO_PROXY… | |
params | Operation parameters as a JSON object, matching the nested shape in scp_describe_operation's documentation.body_example (e.g. {"name": "...", "networks": [{"subnet_id": "..."}], "volumes": [...]}). Ca… | |
profile_name | Credential profile name from ~/.scpconf/credentials.json (default: "default"). | |
region | SCP region (e.g. "kr-west1"). Falls back to the SCP_REGION env var. |
scp_delete_resource
Delete a real SCP resource via the scpv2 SDK. DESTRUCTIVE WRITE OPERATION: this permanently deletes a real cloud resource. Two guards apply: the MCP server must have SCP_MCP_ALLOW_WRITE=1 set, AND this call must pass confirm=true. Without both, it returns an error and does nothing. Returns: Dictionary with status and the deletion result (or an error).
| Parameter | Type | Description |
|---|---|---|
operation * | string | A delete operation starting with "delete_" (e.g. "delete_vpc"). |
service * | string | SCP service name (e.g. "vpc"). |
confirm | boolean | Must be set to true to actually delete. This is a safety guard against accidental deletion of real resources. |
environment | SCP environment that, with region, determines the API endpoint host ({api}.{region}.{environment}.samsungsdscloud.com), e.g. "e" or "s". Falls back to the SCP_ENVIRONMENT env var, then the default "e"… | |
no_proxy | If true, bypass any HTTP(S) proxy and connect directly to the SCP API. Use this behind a corporate SSL-inspection proxy that causes TLS certificate verification errors. Falls back to the SCP_NO_PROXY… | |
params | Operation parameters as a JSON object, typically the resource id (e.g. {"vpc_id": "..."}). See scp_describe_operation. | |
profile_name | Credential profile name from ~/.scpconf/credentials.json (default: "default"). | |
region | SCP region (e.g. "kr-west1"). Falls back to the SCP_REGION env var. |