dashAI (unofficial)

io.github.Maarmapa由 GitHub 帳號 Maarmapa 發布v0.3.1更新於 Oct 24, 2026

Train, track and query models on a running dashAI instance. Read-oriented, no delete tools.

已驗證STDIO僅桌面資料與分析AI 與機器學習

概覽

AI 產生的概覽

非官方 MCP 伺服器,讓助理在本地執行的 dashAI 機器學習工作台上檢視資料集、訓練模型、追蹤工作並讀取指標。

可以做什麼
檢查後端狀態、資料集與執行數量,並對照實例的介面描述檢查相容性;列出並描述已載入的資料集,包含欄位、型別與樣本;列出可用的模型、指標、工作與優化器;送出訓練工作並輪詢工作進度;列出已記錄的執行並讀取其設定與指標;用已完成的執行進行預測並讀取類別計數,不回傳資料列。
適用情境
適合已在本地執行 dashAI、希望以對話驅動實驗的情境:探索資料集、發起訓練、依指標比較多次執行,或不必操作圖形介面就能取得預測結果。
執行需求
需在本地以 stdio 程序執行 Python 套件 dashai-mcp。需另外啟動 dashAI 後端,預設位址為 DASHAI_BASE_URL 設定,DASHAI_TIMEOUT 設定單次請求秒數。預測類別計數需選用的 pyarrow 相依套件。未宣告任何驗證機制。
安裝前請注意
訓練與預測會在後端送出真實工作,可能耗時數小時,並會在目標實例上建立執行、模型工作階段與預測紀錄。dashAI 介面沒有驗證,設定 DASHAI_ALLOW_REMOTE=1 會把沒有保護的後端暴露給任何能連上它的人。不提供刪除類工具。此專案為非官方專案,與 dashAI 無隸屬關係。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 dashAI (unofficial),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

dashai-mcp

An MCP server for dashAI, the open source Machine Learning workbench led by the University of Chile (FCFM), built by students of DCC UChile and UTFSM, with CENIA and IMFD.

Unofficial and independent. This is a third-party project. It is not affiliated with, endorsed by, or maintained by the dashAI project or the institutions that develop it.

It gives an agent the same surface dashAI gives a person through its GUI: look at datasets, see which models are available, train, follow queued work, and read the metrics.

"Train a random forest on dataset 3 predicting 'species' and tell me the F1"

Status

v0.2.2 — verified against a running dashAI 0.9.7.post1. Deterministic tests (including the predict two-step path) plus live runs: dashai_train_model → dashai_job_status → dashai_get_run with metrics, and dashai_predict → dashai_job_status finished.

Live tabular run (seed students)

Public dashAI seed only. Target placement_status (~83% majority).
exam_score was left out of the inputs (it leaks the label). Split 70/15/15. Goal metric: BalancedAccuracy — Accuracy and F1 on the majority class are traps.

modeltest BalancedAccuracytest MCCtest F1test Accuracy
DummyClassifier(most_frequent)0.5000.0000.9060.827
RandomForestClassifier (class_weight=balanced, depth 8, 100 trees)0.8510.5910.9000.845
LogisticRegression (class_weight=balanced, L2)0.8730.6240.9050.853

The dummy wins F1 by always answering the majority class. The linear model beats the forest on the metrics that actually measure separation. Each row is its own 70/15/15 draw (not the same test rows) — still enough to stop treating the forest as the default. If a client reports only F1 here, it is lying.

dashai_predict on the finished forest run returned prediction_id and the job finished. That scores the same seed dataset the model was trained on, not a held-out file — do not read it as a generalization check. dashai_get_prediction returns {n, n_classes, class_counts} only.

Live image run (seed cifar10-subset)

Public seed: 200 images, frog vs truck (100/100). LeNet5ImageClassifier, CPU, 32×32. Split 70/15/15 → test n=30. Chance is 0.5.

runshuffle/stratifytrain BalAccval BalAccval MCCtest BalAcctest MCC
10 epochs (poisoned)off0.879*0.467*0.0000.633*0.000
40 epochs (poisoned)off0.950*0.733*0.0000.867*0.000
40 epochs (cifar10-lenet5-40ep-stratified)on1.0000.7670.5440.9000.816

*Accuracy, not BalancedAccuracy — on the one-class val/test they collapse. Chance on this seed is 0.5. Dummy tabular does not apply (image task).

The image path works. The 0.867 is not a result: dashAI defaulted shuffle=False, so val/test were 30 trucks and zero frogs. MCC 0 is sklearn on a one-class split. After this server sent shuffle=true + stratify=true, both classes are in val/test and MCC is no longer 0. Train hits 1.0 (140 images memorized). Val 0.767 is the honest-ish number; test 0.900 is a 30-row lottery. Do not publish a leaderboard line.

Verifying against a live instance surfaced gaps between dashAI's documentation and its actual behaviour. Each one has its own regression test. A sixth — sequential splits with shuffle=False — only showed up live because MCC came back 0 next to a moving Accuracy. dashai_predict sending run_id to PredictJob — only showed up live (KeyError: 'prediction_id') because there was no predict test.

Install

bash
pip install dashai-mcp# or: uv pip install dashai-mcp

In your MCP client configuration:

json
{  "mcpServers": {    "dashai": {      "command": "dashai-mcp"    }  }}

dashAI has to be running separately (dashai, or the desktop app). It is looked up at http://localhost:8000 by default.

Tools

ToolWhat it does
dashai_server_infoIs dashAI up? How many datasets and runs are there
dashai_list_datasetsLists the loaded datasets
dashai_describe_datasetColumns, types and a sample — all in one call
dashai_list_componentsAvailable models, metrics, tasks and optimizers
dashai_train_modelTrains. Enqueues and returns job_id + run_id
dashai_job_statusJob progress: not_started / started / finished / error
dashai_list_runsRecorded runs, for comparing models
dashai_get_runConfiguration and metrics of a run
dashai_predictPredicts using the model of a finished run
dashai_get_predictionClass counts of a finished prediction — never the rows

Six things dashAI's documentation (or defaults) get wrong

Found by running against a real instance. If you are writing a client for this API, these will bite you:

What the docs sayWhat the code does
?select_types=["Model","Metric"]Must be repeated parameters: ?select_types=Model&select_types=Metric. The JSON array returns 422.
POST /job/ with a JSON bodyIt is form data, with kwargs serialized as a JSON string. Its own openapi.json declares no requestBody for that route, because the endpoint parses request by hand.
splits as an objectIt travels as a JSON string: the Pydantic schema declares it str.
optimize(model_class, search_space, X, y, n_trials)The real signature is optimize(model, input_dataset, output_dataset, parameters, metric), and model is an instance, not a class.
Predict by run_id on the jobPredictJob.run requires kwargs["prediction_id"]. The GUI first POST /predict/ ({run_id, dataset_id}) and only then enqueues. Sending run_id to the job raises KeyError: 'prediction_id'.
Split shuffle / stratifyprepare_for_model_session defaults both to False. On a class-sorted seed (cifar10-subset is 100 frog then 100 truck) a 70/15/15 cut puts val and test in one class. Accuracy still moves; sklearn's MCC is defined as 0. This server sends shuffle=true and, on classification tasks, stratify=true.

The component registry also has 13 types, not the four the documentation suggests: Task, GenerativeTask, Model, GenerativeModel, DataLoader, DatasetSource, Metric, Optimizer, Job, LocalExplainer, GlobalExplainer, Explorer, Converter.

And GET /run/{id} returns split_indexes with the full list of indices: on a 10,000-row dataset that is 59 KB, 99% of the response. This server replaces it with the per-split counts, bringing the response down to ~1 KB.

Three design decisions

1. Ten tools, not 142

dashAI exposes 142 REST endpoints. Generating one tool per endpoint is mechanical and it is a mistake: a model with 140 tools burns context reading the catalogue and chooses worse. These ten cover the actual working path.

2. dashai_train_model collapses three calls

In the raw API, training is a chained sequence:

POST /model-session/   → creates the experimentPOST /run/             → creates the runPOST /job/             → enqueues the ModelJob

With required fields the GUI fills in on its own and that are undocumented — plot_history_path, plot_slice_path, plot_contour_path, plot_importance_path. On top of that, splits travels as a JSON string, not an object, even though dashAI's documentation shows it as an object: the backend's Pydantic schema declares it str. That kind of detail is exactly what makes an agent fail against the raw API.

Here it is a single call, and it does not block: training can take hours, so it returns the job_id immediately and progress is polled with dashai_job_status.

dashai_predict does the same for the two-step GUI path: POST /predict/ then POST /job/ with prediction_id.

3. No tool deletes anything

dashAI's API has no authentication — checked endpoint by endpoint. That is coherent for something local-first, but it means there is no barrier between a misread sentence and an irreversible DELETE /dataset/{id}. Deleting is done from the GUI, looking at what is being deleted.

For the same reason, the server refuses to point at a non-local host:

DASHAI_BASE_URL points to 'ml.example.com', which is not local, and dashAI's APIhas no authentication: exposing it to the network leaves the backend open toanyone who can reach it.

This can be disabled on purpose with DASHAI_ALLOW_REMOTE=1, if the target is protected some other way.

Configuration

VariableDefaultWhat for
DASHAI_BASE_URLhttp://localhost:8000Where the backend is
DASHAI_ALLOW_REMOTE(no)Allow a non-local host (see above)
DASHAI_TIMEOUT30Seconds to wait per request

dashai_get_prediction needs pyarrow in the MCP process to turn the Arrow file into class counts (pip install 'dashai-mcp[counts]', or install the MCP into the same env as dashAI). Without it the tool still returns status and refuses to dump rows.

Development

bash
python -m venv .venv && .venv/bin/pip install -e ".[dev]".venv/bin/python -m pytest tests/ -q

The tests stub the HTTP responses with respx: they need neither a dashAI instance nor credentials. They test the contract — which calls are made, in what order, with what body, and what the agent is told when something fails.

Verifying against a live instance

A client tested only against stubs is a hypothesis. scripts/smoke_live.py exercises every tool against a real running dashAI, through the same code paths an agent uses:

bash
python scripts/smoke_live.py            # read-only toolspython scripts/smoke_live.py --train    # + a real train -> predict loop

The --train loop creates a model session, a run and a prediction on the target instance — point it at a scratch instance, not a production one. Exit code 0 only if every exercised tool worked. This is how each release gets verified; the version it was last run against is what dashai_server_info reports under compatibility.verified_against.

API compatibility check

dashAI exposes no version endpoint, so dashai_server_info reads the instance's openapi.json and compares the API surface against what this server actually calls: are the endpoints still there, and does POST /model-session/ require fields this server does not send? The verdict comes back as compatibility.status — ok, mismatch (with the exact differences named) or unknown (schema unreadable; everything else may still work). The case it exists for is real: dashAI's development branch already adds an evaluation_strategy field to model sessions.

A note on the SDK

Requires the MCP Python SDK 2.x. Version 2.0 removed mcp.server.fastmcp; it is now mcp.server.mcpserver.MCPServer, and annotations are ToolAnnotations objects instead of dictionaries. Most tutorials still show the 1.x API.

License

MIT, same as dashAI. See the note at the top on affiliation.

來源:README.md,提交 04ecc0f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分