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¶
Advanced MCP installer with LLM code generation. |
|
Request for LLM-generated installation code. |
|
LLM-generated installation plan. |
|
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:
plan (GeneratedInstallPlan)
request (CodeGenerationRequest)
- Return type:
langchain_core.tools.StructuredTool
- create_validation_tool(plan, request)¶
Create tool for validating installation.
- Parameters:
plan (GeneratedInstallPlan)
request (CodeGenerationRequest)
- Return type:
langchain_core.tools.StructuredTool
- async generate_installation_plan(request)¶
Generate installation plan using LLM.
- Parameters:
request (CodeGenerationRequest)
- Return type:
- class haive.mcp.installers.advanced_code_installer.CodeGenerationRequest(/, **data)¶
Bases:
pydantic.BaseModelRequest 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.BaseModelLLM-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.BaseModelInput 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)