base2-mcp

v0.2.1
base2-mcp Checked 2 days ago Published 5 months ago

MCP server for Base2 open-source AWS tools — documentation, guidance, and CLI execution

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_base2_tools

List all Base2 open-source tools with a summary of each. Call this first to understand what tools are available and what they do. For cfhighlander, use the playbook guides listed in the output. For other tools, use 'get_tool_docs' to read detailed documentation.

get_server_version

Return the current base2-mcp server version. Use this to check which version of the MCP server is running and whether an update is available.

get_tool_docs

Get detailed CLI reference documentation for a specific Base2 tool. For cfhighlander, this returns the CLI reference only. Use the dedicated playbook tools (get_component_authoring_guide, get_build_and_verify_guide, etc.) for step-by-step guidance. Args: tool_name: The tool to get docs for. One of: 'cfhighlander', 'shelvery', 'guardian', 'monitorable', 'cfn_vpn', 'bastion'.

ParameterTypeDescription
tool_name *string

cfhighlander_docs

Get full documentation for cfhighlander — the CloudFormation DSL and component library. Covers CLI commands, DSL syntax, component structure, configuration hierarchy, lambda packaging, render modes, and the component library. This is a CLI reference. For step-by-step guidance, use the playbook tools instead: get_component_authoring_guide, get_parameter_wiring_guide, get_cfndsl_patterns, get_composition_guide, get_build_and_verify_guide, and get_testing_guide.

cfhighlander_compile

Compile a cfhighlander component to CloudFormation templates. Uses the local cfhighlander gem if installed, otherwise falls back to the theonestack/cfhighlander Docker image automatically. Args: component: Component name with optional version (e.g. 'vpc', 'ecs@1.0.4'). format: Output format — 'yaml' or 'json'. validate: Validate the compiled template against AWS CloudFormation API. quiet: Skip interactive prompts for lambda packaging commands. working_directory: Directory to run the command in.

ParameterTypeDescription
component *string
formatstring
quietboolean
validateboolean
working_directory

cfhighlander_publish

Compile a cfhighlander component and publish CloudFormation templates to S3. Uses the local cfhighlander gem if installed, otherwise falls back to the theonestack/cfhighlander Docker image automatically. Args: component: Component name with optional version (e.g. 'vpc@1.0.4'). format: Output format — 'yaml' or 'json'. version: Published version (defaults to 'latest'). dstbucket: Destination S3 bucket. dstprefix: Destination S3 prefix. validate: Validate the compiled template against AWS CloudFor…

ParameterTypeDescription
component *string
dstbucket
dstprefix
formatstring
quietboolean
validateboolean
version
working_directory

cfhighlander_test

Run cfhighlander component tests. Uses the local cfhighlander gem if installed, otherwise falls back to the theonestack/cfhighlander Docker image automatically. Args: component: Component name with optional version (e.g. 'vpc@1.0.4'). format: Output format — 'yaml' or 'json'. tests_directory: Tests directory (default: 'tests'). test_files: Comma-separated list of specific test file paths. report_format: Report output format — 'json' or 'xml'. quiet: Skip interactive prompts for lambda packagin…

ParameterTypeDescription
component *string
formatstring
quietboolean
report_format
test_files
tests_directory
working_directory

get_component_authoring_guide

Get the complete cfhighlander component authoring guide. Returns the full mental model needed to create or modify a cfhighlander component: file structure, DSL syntax, config patterns, and common mistakes to avoid. This should be the first tool an agent calls when starting cfhighlander work. Args: task_type: Focus area — new_component, modify_component, or debug_compile_error. Adjusts which tips are highlighted.

ParameterTypeDescription
task_typestring

get_parameter_wiring_guide

Get the cfhighlander parameter wiring guide. Covers parameter types (ComponentParam, MappingParam, ConfigParameter), autowiring rules, the cfout() helper, and common wiring patterns. Essential for correctly connecting components together. Args: context: Focus area — consuming_component (using existing components), authoring_component (creating new ones), or debugging (fixing wiring issues).

ParameterTypeDescription
contextstring

get_cfndsl_patterns

Get CfnDsl syntax patterns for cfhighlander .cfndsl.rb files. Covers resource declarations, intrinsic functions, conditions, outputs, config-driven loops, tagging, and IAM patterns. CfnDsl is Ruby method calls — not JSON/YAML — so agents trained on CloudFormation need this reference. Args: resource_type: If provided, append a note about patterns specific to this AWS resource type (e.g. 'AWS::S3::Bucket').

ParameterTypeDescription
resource_type

get_composition_guide

Get the cfhighlander composition guide. Covers rendering modes (Inline vs Substack), master stack patterns, config passing priority, conditional components, and multi-service architecture examples. Args: scenario: Focus area — master_stack (building a top-level stack), adding_subcomponent (nesting a component), or inline_vs_substack (choosing the right render mode).

ParameterTypeDescription
scenariostring

get_testing_guide

Get the cfhighlander testing guide. Covers the test file format (*.test.yaml), config overrides, running cftest, recommended test suite structure, and CI setup. Args: has_rspec: If true, include RSpec assertion patterns for compiled template inspection.

ParameterTypeDescription
has_rspecboolean

get_build_and_verify_guide

Get the cfhighlander build and verify guide. Covers the Docker-based compile workflow, output directory structure, how to read and verify compiled CloudFormation templates, common compile errors with fixes, and the debug strategy for isolating failures. Args: stage: Focus area — building (Docker compile commands), verifying (reading and checking compiled output), or debugging (common errors and debug strategy).

ParameterTypeDescription
stagestring

list_components

List available cfhighlander components from the theonestack registry. There are 85+ pre-built components for common AWS patterns (VPC, ECS, ALB, RDS, S3, Lambda, etc.). Use this before writing raw CloudFormation to check if a component already exists. Components with a -v2 suffix supersede the original version. Args: search: Filter components by keyword in name or description (e.g. "database", "ecs", "network"). category: Filter by category — compute, network, storage, database, security, messag…

ParameterTypeDescription
categorystring
search

validate_component_structure

Validate a local cfhighlander component directory structure. Checks file naming, required files, config YAML validity, DSL structure, test files, and dependency references. Catches structural issues early before compilation to avoid cryptic Ruby stack traces. Args: component_path: Absolute or relative path to the component directory to validate.

ParameterTypeDescription
component_path *string

shelvery_docs

Get full documentation for shelvery — automated AWS backup tool with grandfather-father-son retention strategy. Covers supported resources, CLI usage, retention policies, configuration keys, multi-account setup, and deployment options.

shelvery_create_backups

Create AWS backups for a specific resource type using shelvery. Backs up resources tagged with 'shelvery:create_backup=true'. Retention type is automatically determined by the current date (daily/weekly/monthly/yearly). Args: resource_type: The AWS resource type to back up — 'ebs', 'ec2ami', 'rds', 'rds_cluster', 'redshift', or 'docdb'. select_entity: Back up only a single named resource instead of all tagged. dr_regions: Comma-separated disaster recovery regions (e.g. 'us-west-1,us-east-1'). share_acco…

ParameterTypeDescription
resource_type *string
dr_regions
select_entity
share_account_ids

shelvery_clean_backups

Clean stale AWS backups according to retention policy. Removes backups older than the configured retention period for each retention level (daily, weekly, monthly, yearly). Args: resource_type: The AWS resource type to clean — 'ebs', 'ec2ami', 'rds', 'rds_cluster', 'redshift', or 'docdb'. keep_daily: Override days to keep daily backups (default: 14). keep_weekly: Override weeks to keep weekly backups (default: 8). keep_monthly: Override months to keep monthly backups (default: 12). keep_year…

ParameterTypeDescription
resource_type *string
keep_daily
keep_monthly
keep_weekly
keep_yearly

shelvery_pull_shared_backups

Pull and copy backups shared from other AWS accounts into the current account. Used for disaster recovery setups where a central account aggregates backups from multiple source accounts. Args: resource_type: The AWS resource type to pull — 'ebs', 'ec2ami', 'rds', 'rds_cluster', 'redshift', or 'docdb'. source_account_ids: Comma-separated AWS account IDs to pull backups from.

ParameterTypeDescription
resource_type *string
source_account_idsstring

guardian_docs

Get full documentation for cfn-guardian — CloudWatch alarm management via CloudFormation. Covers supported resources, alarm configuration YAML format, severity levels, custom checks, and deployment commands.

guardian_compile

Compile a cfn-guardian alarm config YAML into a CloudFormation template. Args: config: Path to the alarms YAML config file (e.g. 'alarms.yaml'). output_dir: Output directory for compiled templates. working_directory: Directory to run the command in.

ParameterTypeDescription
config *string
output_dir
working_directory

guardian_deploy

Compile and deploy cfn-guardian alarms as a CloudFormation stack. Args: config: Path to the alarms YAML config file (e.g. 'alarms.yaml'). stack_name: CloudFormation stack name for the alarms. region: AWS region to deploy to (e.g. 'ap-southeast-2'). working_directory: Directory to run the command in.

ParameterTypeDescription
config *string
region *string
stack_name *string
working_directory

guardian_show_alarms

Show all alarms that would be created from a cfn-guardian config. Args: config: Path to the alarms YAML config file. working_directory: Directory to run the command in.

ParameterTypeDescription
config *string
working_directory

guardian_show_resources

Show all resources being monitored in a cfn-guardian config. Args: config: Path to the alarms YAML config file. working_directory: Directory to run the command in.

ParameterTypeDescription
config *string
working_directory

monitorable_docs

Get full documentation for monitorable — CloudWatch alarm coverage auditing tool. Covers output formats, CLI options, config file, and typical workflow for identifying monitoring gaps.

monitorable_audit

Run monitorable to audit CloudWatch alarm coverage in an AWS account. Queries monitorable resources and reports on which have alarms and which do not. Can output in various formats including cfn-guardian config. Args: format: Output format — 'audit' (default), 'cfn-monitor', 'cfn-guardian', 'tags', 'json', or 'yaml'. regions: Comma-separated AWS regions to query (default: all regions). tag: Group output by this tag's values (e.g. 'Environment'). working_directory: Directory containing monitorable.py.…

ParameterTypeDescription
formatstring
regions
tag
working_directory

cfn_vpn_docs

Get full documentation for cfn-vpn — AWS Client VPN management via CloudFormation. Covers commands (init, modify, routes, sessions, client, delete), authentication methods, and prerequisites.

cfn_vpn_init

Initialize a new AWS Client VPN endpoint. Creates the VPN endpoint, server certificate, and CloudFormation stack. Args: name: Name for the VPN (used as CloudFormation stack identifier). server_cn: Common name for the server certificate (e.g. 'vpn.example.com'). subnet_ids: Comma-separated VPC subnet IDs to associate. region: AWS region (e.g. 'ap-southeast-2'). cidr: Client CIDR block (default: '10.250.0.0/16'). dns_servers: Comma-separated custom DNS server IPs. split_tunnel: Enable split tunn…

ParameterTypeDescription
name *string
region *string
server_cn *string
subnet_ids *string
cidr
dns_servers
protocol
split_tunnelboolean

cfn_vpn_modify

Modify an existing AWS Client VPN endpoint. Args: name: Name of the VPN to modify. region: AWS region. dns_servers: Updated DNS server IPs (comma-separated). split_tunnel: Enable or disable split tunneling.

ParameterTypeDescription
name *string
region *string
dns_servers
split_tunnel

cfn_vpn_routes

Manage routes for an AWS Client VPN endpoint. Shows and manages authorization and routing rules for VPC subnets and external networks. Args: name: Name of the VPN. region: AWS region.

ParameterTypeDescription
name *string
region *string

cfn_vpn_sessions

List active sessions on an AWS Client VPN endpoint. Shows connected users and connection details. Args: name: Name of the VPN. region: AWS region.

ParameterTypeDescription
name *string
region *string

bastion_docs

Get full documentation for bastion-cli — temporary on-demand bastion EC2 instances via AWS Session Manager. Covers launching Linux/Windows bastions, SSH tunnels, EFS mounts, RDP, port forwarding, and instance lifecycle management.

bastion_launch

Launch a new Linux bastion EC2 instance. Creates a temporary EC2 instance and connects via AWS Session Manager. By default uses spot pricing and auto-terminates after 2 hours. Args: ssh: Start an SSH session instead of SSM (requires ssh_key). ssh_key: Path to SSH public key for SSH sessions. ssh_opts: SSH options string (e.g. '-L 3306:db.internal:3306' for tunnels). expire_after: Minutes before auto-termination (default: 120). no_expire: Disable auto-termination entirely. no_terminate: Don't termi…

ParameterTypeDescription
access_points
efs
expire_after
no_expireboolean
no_terminateboolean
on_demandboolean
sshboolean
ssh_key
ssh_opts

bastion_connect

Connect to an existing EC2 instance via AWS Session Manager. Discovers all instances with the SSM agent running and lets you pick one to connect to. Works with any EC2 instance, not just bastions launched by this CLI.

bastion_terminate

Terminate a bastion EC2 instance by session ID. Cleans up the instance and any associated resources created during launch. Args: session_id: The bastion session ID returned when the instance was launched.

ParameterTypeDescription
session_id *string

bastion_port_forward

Create a remote port forwarding session through a bastion instance. Useful for connecting to private resources like RDS instances. Args: remote_port: The port on the remote host to forward (e.g. 5432 for PostgreSQL). region: AWS region (e.g. 'ap-southeast-2'). local_port: Local port to bind (auto-assigned if not specified).

ParameterTypeDescription
region *string
remote_port *integer
local_port