MCP: flatten the useful request wrappers and add benchmark coverage #3

Open
opened 2026-11-11 22:12:04 +00:00 by dsh · 0 comments
Owner

Context

The optional Kaggle MCP adapter registers the server's tools as advertised, so every call looks like { request: { pageSizeNullable: …, hasPageSize: true, … } } with proto3 noise. docs/kaggle-mcp.md documents 76 tools; pageSize is ignored by the server while page works.

Work

  • Add curated flat wrappers for the high-value MCP tools (search_datasets, search_competitions, get_competition, get_dataset_info, list_dataset_files, list_notebook_files, get_notebook_session_status, get_accelerator_quota) with snake_case parameters and presence-based hasX.
  • Keep raw mcp__kaggle__* registration behind a config flag.
  • Map MCP isError + "Unauthenticated" to a typed hint instead of plain prose.
  • Add CLI benchmark tools (benchmarks tasks list/run/log/download, benchmarks leaderboard) if they can be wrapped without an interactive picker.
  • Decide whether any MCP write tool (save_notebook, create_notebook_session) should be exposed; keep operator-confirmation semantics.

Acceptance

  • Wrappers have tests against a fake MCP client, and the raw/typed split is documented in docs/design.md.
## Context The optional Kaggle MCP adapter registers the server's tools as advertised, so every call looks like `{ request: { pageSizeNullable: …, hasPageSize: true, … } }` with proto3 noise. `docs/kaggle-mcp.md` documents 76 tools; `pageSize` is ignored by the server while `page` works. ## Work - [ ] Add curated flat wrappers for the high-value MCP tools (`search_datasets`, `search_competitions`, `get_competition`, `get_dataset_info`, `list_dataset_files`, `list_notebook_files`, `get_notebook_session_status`, `get_accelerator_quota`) with snake_case parameters and presence-based `hasX`. - [ ] Keep raw `mcp__kaggle__*` registration behind a config flag. - [ ] Map MCP `isError` + "Unauthenticated" to a typed hint instead of plain prose. - [ ] Add CLI benchmark tools (`benchmarks tasks list/run/log/download`, `benchmarks leaderboard`) if they can be wrapped without an interactive picker. - [ ] Decide whether any MCP write tool (save_notebook, create_notebook_session) should be exposed; keep operator-confirmation semantics. ## Acceptance - Wrappers have tests against a fake MCP client, and the raw/typed split is documented in `docs/design.md`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
dsh-plugins/dsh-kaggle#3
No description provided.