haive.mcp.servers.dataflow_mcp_server¶
MCP Server integrating Haive Dataflow for dynamic tool creation.
This server demonstrates how to create MCP tools from Haive’s dataflow system, exposing dataflow graphs as MCP tools and resources. It integrates with: - haive-core: For agent and engine functionality - haive-dataflow: For registry and discovery systems - haive-tools: For exposing existing tools via MCP
Classes¶
Request model for agent creation. |
Functions¶
|
Generate a prompt for agent configuration. |
|
Generate a prompt for searching components by requirement. |
|
Create a new Haive agent with specified configuration. |
|
Discover Haive components in the system. |
|
Execute a Haive tool by name. |
Resource providing all registry entities. |
|
Resource providing registry statistics. |
|
Initialize the MCP server with dataflow integration. |
|
|
Query the Haive registry for components. |
Module Contents¶
- class haive.mcp.servers.dataflow_mcp_server.AgentCreationRequest(/, **data)¶
Bases:
pydantic.BaseModelRequest model for agent creation.
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)
- async haive.mcp.servers.dataflow_mcp_server.agent_configuration_prompt(task_description, available_tools)¶
Generate a prompt for agent configuration.
- async haive.mcp.servers.dataflow_mcp_server.component_search_prompt(requirement)¶
Generate a prompt for searching components by requirement.
- async haive.mcp.servers.dataflow_mcp_server.create_agent(request)¶
Create a new Haive agent with specified configuration.
- Parameters:
request (AgentCreationRequest) – Agent creation parameters
- Returns:
Agent creation result with ID and status
- Return type:
- async haive.mcp.servers.dataflow_mcp_server.discover_components(component_type='all', auto_register=False)¶
Discover Haive components in the system.
- async haive.mcp.servers.dataflow_mcp_server.execute_tool(tool_name, input_data)¶
Execute a Haive tool by name.
- async haive.mcp.servers.dataflow_mcp_server.get_registry_entities()¶
Resource providing all registry entities.
- async haive.mcp.servers.dataflow_mcp_server.get_registry_statistics()¶
Resource providing registry statistics.
- async haive.mcp.servers.dataflow_mcp_server.initialize_server()¶
Initialize the MCP server with dataflow integration.
- async haive.mcp.servers.dataflow_mcp_server.query_registry(entity_type=None, name_pattern=None, limit=10)¶
Query the Haive registry for components.