add_connection
Add connections between components in your architecture. Supports single or batch operations, specifying source and destination IDs, protocol, port, encryption, and description.
Instructions
Add a new connection to the architecture. Supports batch operations via the 'items' parameter.
This tool adds one or more connections between components in the system architecture. For single item: provide source_id, destination_id, and optional fields directly. For batch: provide a list of connection dicts in the 'items' parameter.
Args: ctx: MCP context for logging and error handling source_id: ID of the source component (required for single item mode) destination_id: ID of the destination component (required for single item mode) protocol: Protocol used for the connection (e.g., 'HTTP', 'HTTPS', 'TCP') port: Port used for the connection encryption: Whether the connection is encrypted description: Description of the connection items: Optional list of connection dicts for batch operation
Returns: A confirmation message with the connection ID(s)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port used for the connection | |
| items | No | Optional list of connections to add in batch. Each dict should contain 'source_id', 'destination_id', and optionally 'protocol', 'port', 'encryption', 'description'. When provided, individual parameters are ignored. | |
| protocol | No | Protocol used for the connection (e.g., 'HTTP', 'HTTPS', 'TCP') | |
| source_id | No | ID of the source component (required for single item mode) | |
| encryption | No | Whether the connection is encrypted | |
| description | No | Description of the connection | |
| destination_id | No | ID of the destination component (required for single item mode) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |