mcp-adr-analysis-server
Version:
MCP server for analyzing Architectural Decision Records and project architecture
62 lines • 2.35 kB
TypeScript
/**
* LLM-Managed Cloud Management Tool
*
* Provides LLM-driven cloud provider operations with research-driven approach
*/
import type { ToolContext } from '../types/tool-context.js';
/**
* LLM-managed cloud provider operations with research-driven approach
*
* @description Executes cloud operations using LLM to research best practices,
* generate appropriate commands, and execute them. Supports AWS, Azure, GCP, Red Hat, Ubuntu, and macOS.
*
* @param {Object} args - Cloud management configuration parameters
* @param {string} args.provider - Cloud provider (aws, azure, gcp, redhat, ubuntu, macos)
* @param {string} args.action - Action to perform
* @param {Object} [args.parameters] - Action parameters
* @param {string} args.llmInstructions - LLM instructions for command generation
* @param {boolean} [args.researchFirst] - Research best approach first (default: true)
* @param {string} [args.projectPath] - Path to project root (defaults to cwd)
* @param {string} [args.adrDirectory] - ADR directory relative to project (defaults to 'docs/adrs')
*
* @returns {Promise<any>} Cloud operation results with LLM analysis
*
* @throws {McpAdrError} When required parameters are missing or operation fails
*
* @example
* ```typescript
* // AWS EC2 instance creation
* const result = await llmCloudManagement({
* provider: 'aws',
* action: 'create_ec2_instance',
* parameters: { instanceType: 't3.micro', region: 'us-east-1' },
* llmInstructions: 'Create a secure, cost-effective instance for development'
* });
* ```
*
* @example
* ```typescript
* // Red Hat OpenShift deployment
* const result = await llmCloudManagement({
* provider: 'redhat',
* action: 'deploy_application',
* parameters: { appName: 'my-app', namespace: 'production' },
* llmInstructions: 'Deploy with high availability and monitoring'
* });
* ```
*
* @since 2.1.0
* @category Cloud Management
* @category LLM
* @mcp-tool
*/
export declare function llmCloudManagement(args: {
provider: 'aws' | 'azure' | 'gcp' | 'redhat' | 'ubuntu' | 'macos';
action: string;
parameters?: Record<string, any>;
llmInstructions: string;
researchFirst?: boolean;
projectPath?: string;
adrDirectory?: string;
}, context?: ToolContext): Promise<any>;
//# sourceMappingURL=llm-cloud-management-tool.d.ts.map