haive.mcp.installers.advanced_code_installer

Advanced Code-Generating MCP Server Installer.

Version 2: Uses Aug_LLM agents to generate custom installation code. More flexible but requires human oversight for safety.

Classes

AdvancedCodeInstaller

Advanced MCP installer with LLM code generation.

CodeGenerationRequest

Request for LLM-generated installation code.

GeneratedInstallPlan

LLM-generated installation plan.

SubprocessExecutionInput

Input for subprocess execution tool.

Module Contents

class haive.mcp.installers.advanced_code_installer.AdvancedCodeInstaller(config_manager=None)

Advanced MCP installer with LLM code generation.

Init .

Parameters:

config_manager (haive.mcp.installers.config_manager.MCPConfigManager | None) – [TODO: Add description]

cleanup()

Clean up all resources.

create_subprocess_execution_tool(plan, request)

Create tool for executing subprocess commands with oversight.

Parameters:
Return type:

langchain_core.tools.StructuredTool

create_validation_tool(plan, request)

Create tool for validating installation.

Parameters:
Return type:

langchain_core.tools.StructuredTool

async generate_installation_plan(request)

Generate installation plan using LLM.

Parameters:

request (CodeGenerationRequest)

Return type:

GeneratedInstallPlan

get_advanced_status()

Get status of advanced installer.

Return type:

dict[str, Any]

async install_server_advanced(request)

Advanced server installation with code generation.

Parameters:

request (CodeGenerationRequest)

Return type:

tuple[bool, str, list[langchain_core.tools.StructuredTool]]

class haive.mcp.installers.advanced_code_installer.CodeGenerationRequest(/, **data)

Bases: pydantic.BaseModel

Request for LLM-generated installation code.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

class haive.mcp.installers.advanced_code_installer.GeneratedInstallPlan(/, **data)

Bases: pydantic.BaseModel

LLM-generated installation plan.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

class haive.mcp.installers.advanced_code_installer.SubprocessExecutionInput(/, **data)

Bases: pydantic.BaseModel

Input for subprocess execution tool.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)