You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Proactively diagnose infrastructure issues by intelligently checking relevant diagnostic sources based on infrastructure type. For ClickHouse, automatically checks: stuck mutations, S3Queue ingestion errors (for S3Queue tables), replication health (for replicated tables), data parts issues, background merge problems, system errors, and stopped operations. Returns structured, actionable information about errors and warnings with suggested remediation steps.".into()
142
+
"Proactively scan for infrastructure health issues (stuck mutations, replication errors, S3Queue failures, merge problems). Auto-checks relevant diagnostics based on infrastructure type. Use when investigating errors or performance issues. Returns actionable problems with remediation suggestions.".into()
/// Fuzzy match using case-insensitive substring matching
29
+
fnfuzzy_match(query:&str,text:&str) -> bool{
30
+
let query_lower = query.to_lowercase();
31
+
let text_lower = text.to_lowercase();
32
+
text_lower.contains(&query_lower)
33
+
}
34
+
28
35
/// Returns the tool definition for the MCP server
29
36
pubfntool_definition() -> Tool{
30
37
let schema = json!({
31
38
"type":"object",
32
-
"properties":{}
39
+
"properties":{
40
+
"search":{
41
+
"type":"string",
42
+
"description":"Focus on specific components (fuzzy, case-insensitive). Examples: 'user' → UserEvents, user_table, INGRESS_User; 'bar' → Bar topic, BarAggregated table. Omit for complete map."
43
+
}
44
+
}
33
45
});
34
46
35
47
Tool{
36
48
name:"get_infra_map".into(),
37
49
description:Some(
38
-
"Retrieve the complete Moose infrastructure map showing all components and their connections. Returns tables, topics, API endpoints, sync processes, functions, SQL resources, workflows, and their relationships in a compact TOON table format.".into()
50
+
"🔍 START HERE: Get complete project topology showing all components (tables, topics, APIs, functions, workflows) with source file locations and data flow connections. Essential first step to understand project structure, locate files, and verify code changes are reflected. Use 'search' to focus on specific components (e.g., search='User' shows UserEvents topic, user tables, and all related connections).".into()
"Retrieve and filter Moose dev server logs. Access recent log entries from the current dev server session, filter by log level (ERROR, WARN, INFO, DEBUG, TRACE), and search with regex patterns (e.g., 'error|warn', '(?i)connection', 'user_\\d+').".into()
175
+
"Debug issues by checking dev server logs. Filter by level (ERROR/WARN/INFO/DEBUG/TRACE) or search with regex. Use when troubleshooting errors, connection issues, or unexpected behavior.".into()
"Execute read-only SQL queries against the ClickHouse OLAP database. Queries automatically use the configured database as the default context, so you can query tables without fully-qualifying them. Use this tool to explore data, check table schemas, and analyze stored information. Supports SELECT queries, system table queries (e.g., system.tables, system.columns), and metadata commands (SHOW, DESCRIBE, EXPLAIN).".into()
294
+
"Query ClickHouse to explore data, verify ingestion, check schemas. Use SELECT to analyze stored data, SHOW/DESCRIBE for table info, system.tables/system.columns for metadata. Read-only, safe for production. Tables auto-scoped to project database.".into()
"Retrieve sample messages from a Redpanda/Kafka streaming topic. Get the last N messages from any topic/stream for debugging and exploration. Returns messages as JSON arrays with message payloads.".into()
96
+
"Sample recent messages from streaming topics to verify data flow, debug transformations, or inspect payloads. Get last N messages from any topic. Use after get_infra_map to see available topics.".into()
0 commit comments