server_info
Retrieve server configuration details including version, transport, OS, and data directory to verify setup and confirm compatibility before executing atomic tests.
Instructions
Get comprehensive information about the MCP server configuration and environment.
This tool returns server metadata including version, transport protocol, operating system, and data directory location. Use this to:
Verify server configuration
Check server version for compatibility
Confirm the platform before executing atomic tests
Locate the atomic tests data directory
Args: ctx: MCP context (provided automatically by the framework)
Returns: ServerInfoOutput: Server information with the following fields: - name (str): Server name - always "Atomic Red Team MCP" - version (str): Installed package version (e.g., "1.2.3") Shows "dev" if running from source without installation - transport (str): MCP transport protocol being used Values: "stdio" (default), "sse", or "streamable-http" - os (str): Operating system platform Values: "Darwin" (macOS), "Linux", "Windows" Use this to verify test compatibility before execution - data_directory (str): Absolute path to atomic tests storage directory This is where atomic YAML files are stored Use this path when creating new atomic tests - execution_enabled (bool): Whether atomic test execution is enabled on this server
Examples: # Get server information info = server_info(ctx) print(f"Running version {info.version} on {info.os}")
# Check if remote server for execution
if info.transport == 'streamable-http':
print("This is a remote MCP server")
# Get data directory for creating tests
data_dir = info.data_directory
print(f"Create new tests in: {data_dir}/T####/T####.yaml")Use Cases: 1. Before executing tests: Check OS matches supported_platforms 2. Creating atomic tests: Use data_directory to know where to save files 3. Debugging: Verify configuration settings 4. Version compatibility: Ensure tools match server version
Notes: - This tool always succeeds and never raises exceptions - Information reflects the current runtime configuration - Transport and data_directory come from Settings (environment variables/.env) - OS is detected at runtime and cannot be changed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | Yes | Operating system platform (Darwin, Linux, Windows) | |
| name | Yes | Server name | |
| version | Yes | Server version number | |
| transport | Yes | MCP transport protocol being used (stdio, sse, streamable-http) | |
| data_directory | Yes | Absolute path to atomic tests storage directory | |
| execution_enabled | Yes | Whether atomic test execution is enabled on this server |