FileDashboard MCP

v1.0.1
io.github.Hessam-Mamagani/filedashboard-mcp Checked 1 day ago Published 2 days ago

Privacy-first Excel, CSV, PDF & Word visual comparison, ML anomaly & DuckDB SQL SEP-1865 MCP App

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

open_file_dashboard FileDashboard

Launch the interactive SEP-1865 FileDashboard visual cockpit UI for a human user needing an all-in-one visual exploration workspace or a built-in demo scenario ('procurement_audit', 'contract_diff', 'expenses_forecast'). Use ONLY when the user explicitly asks to open the visual dashboard or view a demo; do NOT call this for automated file loading or targeted single-purpose analyses — use ingest_workspace_files to mount user files, then reconcile_cross_files, detect_data_anomalies, query_workspace_sql, or compare_documents. Strictly read-only on disk (applies local GDPR/KVKK PII masking). Ret…

ParameterTypeDescription
file_pathsOptional list of local file paths (CSV, TSV, Excel, JSON, Parquet, PDF, Word, TXT/MD) to ingest read-only when opening the visual cockpit.
scenarioOptional built-in demo dataset to preload: 'procurement_audit', 'contract_diff', or 'expenses_forecast'. Ignored when file_paths is provided.

ingest_workspace_files Ingest Local Files with PII Shield

Run first in a programmatic workflow (before reconcile_cross_files, detect_data_anomalies, query_workspace_sql, or compare_documents) and prefer over open_file_dashboard whenever loading local files without explicitly launching the visual cockpit UI. Reads local CSV, TSV, Excel (.xlsx), JSON, Parquet, PDF, Word (.docx), or TXT/MD files strictly read-only into the in-memory DuckDB workspace with automatic local GDPR/KVKK PII masking, then computes initial reconciliation, IsolationForest anomalies, trend forecast, and document diff. Returns ingestion timing plus structured DashboardSnapshot (tab…

ParameterTypeDescription
file_paths *arrayOne or more local file paths (CSV, TSV, .xlsx, JSON, Parquet, PDF, .docx, TXT/MD) to ingest into the in-memory DuckDB workspace.
reset_workspacebooleanWhen True (default), clears previously mounted tables and documents before loading; set False to append files into the active workspace.

reconcile_cross_files Fuzzy Reconcile Two Tables

Prefer this focused tool over open_file_dashboard whenever you only need to match rows and quantify numeric variances across two already-mounted tables (call ingest_workspace_files first if user files are not loaded; do not use for prose/contract comparison — use compare_documents instead). Uses RapidFuzz entity normalization across left_table and right_table (including PDF tables vs. Excel sheets), auto-detecting key and value columns if omitted and flagging percentage variances >= variance_flag_pct. Strictly read-only; returns variance summary plus structured DashboardSnapshot with reconci…

ParameterTypeDescription
left_table *stringExact name of the baseline mounted table in DuckDB.
right_table *stringExact name of the comparison mounted table in DuckDB.
left_key_colOptional join/entity key column in left_table (auto-detected if omitted).
left_value_colOptional numeric metric column in left_table (auto-detected if omitted).
right_key_colOptional join/entity key column in right_table (auto-detected if omitted).
right_value_colOptional numeric metric column in right_table (auto-detected if omitted).
variance_flag_pctnumberPercentage difference threshold to flag a row variance (default: 8.0).

detect_data_anomalies Detect ML Anomalies (IsolationForest)

Prefer this focused tool over open_file_dashboard whenever you only need statistical or ML outlier detection on a single mounted table (call ingest_workspace_files first if user files are not loaded). Runs scikit-learn IsolationForest on table_name (auto-selecting the primary numeric value_column and label_column when omitted) using the contamination rate (default 0.05 = ~5% outliers). Strictly read-only; returns top flagged outliers with reasons plus structured DashboardSnapshot with anomalies (anomaly_count, total_rows, mean, std, points).

ParameterTypeDescription
table_name *stringExact name of the mounted DuckDB table to scan for outliers.
contaminationnumberExpected proportion of anomalies in the dataset (default: 0.05).
label_columnOptional row label/identifier column for readable outlier output.
value_columnOptional numeric column to analyze (auto-detected if omitted).

query_workspace_sql Run Read-Only DuckDB SQL

Prefer this focused tool over open_file_dashboard whenever you need custom ad-hoc aggregations, joins, or filtering across mounted tables (call ingest_workspace_files first if user files are not loaded). Executes strictly read-only DuckDB SQL (allows SELECT, WITH, DESCRIBE, and SUMMARIZE only; blocks DDL, writes, multi-statements, and external file functions) capped at max_rows. Returns row/column summary plus structured DashboardSnapshot and sqlResult (sql, columns, rows, row_count, truncated, elapsed_ms).

ParameterTypeDescription
sql *stringRead-only DuckDB SQL statement (SELECT, WITH, DESCRIBE, or SUMMARIZE) referencing mounted workspace table names.
max_rowsintegerMaximum number of result rows to return (default: 100).

compare_documents Compare Two Documents & Numeric Shifts

Prefer this focused tool over open_file_dashboard whenever you only need clause-by-clause text, contract, or policy diffing between two already-mounted Word, PDF, or text documents (do not use for tabular CSV/Excel row reconciliation — use reconcile_cross_files instead). Surfaces exact changed currencies, percentages, durations, and numeric shifts. Strictly read-only; returns diff summary plus structured DashboardSnapshot with document_diff (similarity_pct, modified_count, added_count, removed_count, numeric_changes, clause_changes).

ParameterTypeDescription
left_doc *stringExact doc_id or filename of the baseline mounted document.
right_doc *stringExact doc_id or filename of the updated mounted document.

app_ingest_files UI Callback: Ingest Uploaded Local Files

App-only UI callback (hidden from model) to ingest one or more user-selected local files (base64-encoded bytes) directly from the SEP-1865 dashboard iframe into the in-memory DuckDB workspace with automatic GDPR/KVKK PII masking.

ParameterTypeDescription
files *arrayOne or more uploaded files with filename and base64-encoded raw bytes.
reset_workspacebooleanWhen True (default), clears existing tables/docs before loading; False appends.

app_load_scenario UI Callback: Load Demo Scenario

App-only UI callback (hidden from model) to load a built-in demo scenario inside the dashboard iframe.

ParameterTypeDescription
scenariostringBuilt-in scenario key ('procurement_audit', 'contract_diff', or 'expenses_forecast').

app_clear_workspace UI Callback: Clear In-Memory Workspace

App-only UI callback (hidden from model) to reset the in-memory DuckDB workspace from the dashboard iframe.

app_run_sql UI Callback: Execute Read-Only SQL

App-only UI callback (hidden from model) to execute read-only DuckDB SQL from the dashboard iframe.

ParameterTypeDescription
sql *stringRead-only DuckDB SQL query to run in the workspace.

app_reconcile UI Callback: Reconcile Mounted Tables

App-only UI callback (hidden from model) to re-run table reconciliation from the dashboard iframe.

ParameterTypeDescription
left_table *stringBaseline mounted table name.
right_table *stringComparison mounted table name.
variance_flag_pctnumberPercentage variance flag threshold (default: 8.0).

app_detect_anomalies UI Callback: Detect ML Anomalies

App-only UI callback (hidden from model) to re-run IsolationForest anomaly scanning from the dashboard iframe.

ParameterTypeDescription
table_name *stringMounted table name to scan.
contaminationnumberExpected anomaly proportion (default: 0.05).
value_columnOptional numeric column name.