Files
next-tjwater-agent/src/runtime/product-mcp-tools.ts
T
jiang 7d47a2df86
Generic Container CI/CD / test-build-publish (push) Failing after 8m25s
Agent CI/CD / build-test-publish-and-deploy (push) Failing after 8m25s
feat: add scoped history and artifacts
2026-10-22 18:40:20 +08:00

84 lines
2.9 KiB
TypeScript

export const PRODUCT_MCP_READ_TOOLS = [
"get_mutation_status",
"export_project_model",
"export_sensor_placement",
"get_analysis_run",
"get_element_gis_properties",
"get_element_properties",
"get_model_baseline_at_time",
"get_model_configuration",
"get_network_options",
"get_network_schema",
"get_node_connections",
"get_project_info",
"get_region",
"get_region_nodes",
"get_scada_device",
"get_sensor_placement_candidate",
"get_sensor_placement_run",
"get_source_gis_properties",
"get_task_context",
"get_task_evidence",
"get_task_run_history",
"get_workbench_runtime",
"list_analysis_results",
"list_analysis_runs",
"list_elements",
"list_major_nodes",
"list_model_configurations",
"list_regions",
"list_scada_devices",
"list_sensor_placement_runs",
"list_task_schedules",
"query_analysis_series",
"query_analysis_values",
"query_element_history",
"query_model_baseline_field",
"query_model_baseline_series",
"query_nearby_elements",
"query_network_extent",
"query_peripheral_data",
"query_scada_readings",
"reverse_geocode",
"search_project_places",
] as const;
export const PRODUCT_MCP_ANALYSIS_TOOLS = [
"analyze_flushing",
"analyze_pressure_regulation",
"analyze_valve_closure",
"analyze_valve_isolation",
"calculate_demand_allocation",
"optimize_sensor_placement",
"run_burst_detection",
"run_burst_location",
"run_burst_simulation",
"run_contaminant_simulation",
"run_leakage_identification",
"run_simulation",
] as const;
export const PRODUCT_MCP_WRITE_TOOLS = [
"cancel_task_run",
"clean_scada_readings",
"create_operational_task",
"create_sensor_placement",
"create_task_schedule",
"delete_scada_readings",
"edit_model_configuration",
"edit_model_element",
"retry_operational_task",
"save_simulation_scenario",
"update_sensor_placement",
"update_task_schedule",
"write_scada_readings",
] as const;
export const PRODUCT_MCP_TOOLS = [...PRODUCT_MCP_READ_TOOLS, ...PRODUCT_MCP_ANALYSIS_TOOLS, ...PRODUCT_MCP_WRITE_TOOLS] as const;
export const QUERY_MCP_SERVER = "mcp_tjwater";
export const queryMcpToolId = (name: string) => `${QUERY_MCP_SERVER}_${name}`;
export const PRODUCT_MCP_TOOL_IDS = PRODUCT_MCP_TOOLS.map(queryMcpToolId);
export const PRODUCT_MCP_READ_TOOL_IDS = PRODUCT_MCP_READ_TOOLS.map(queryMcpToolId);
export const PRODUCT_MCP_WRITE_TOOL_IDS = PRODUCT_MCP_WRITE_TOOLS.map(queryMcpToolId);
export const LOCAL_QUERY_TOOLS = ["geocode", "session_search", "list_investigation_tasks", "get_investigation_task", "read_agent_messages", "todoread"] as const;
export const LOCAL_QUERY_TOOL_IDS = LOCAL_QUERY_TOOLS.map(queryMcpToolId);
export const QUERY_MCP_TOOL_IDS = [...PRODUCT_MCP_TOOL_IDS, ...LOCAL_QUERY_TOOL_IDS];
export const QUERY_MCP_AUTOALLOW_TOOL_IDS = [...PRODUCT_MCP_READ_TOOL_IDS, ...PRODUCT_MCP_ANALYSIS_TOOLS.map(queryMcpToolId), ...LOCAL_QUERY_TOOL_IDS];