• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubeflow / mcp-server / 42797333173
95%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 10:14AM UTC
Jobs 3
Files 44
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 10:13AM UTC coverage: 87.843% (+0.4%) from 87.455%
42797333173

push

github

web-flow
feat: add spark client module for SparkConnect sessions (#51)

* feat: add spark client module for SparkConnect sessions (#5)

Implement the `spark` client module wrapping kubeflow.spark.SparkClient so
AI agents can manage SparkConnect sessions over MCP, mirroring the trainer
module's architecture.

Tools (5):
- list_spark_sessions / get_spark_session / get_spark_session_logs (read-only)
- create_spark_session / delete_spark_session (write, two-phase confirm gate)

Design notes:
- Only the public, JSON-serializable SparkClient methods are wrapped. All
  kubeflow.spark / pyspark imports are lazy, so the module and its metadata
  load without the optional `kubeflow[spark]` extra.
- create_spark_session uses the SDK's only public creation path (connect()),
  releases the transient driver SparkSession, and returns session metadata;
  the data plane attaches with PySpark. Documented in resources + Known
  Limitations (attach-to-existing and follow=True streaming are out of scope).
- New spark_* tool phases; personas and DESTRUCTIVE_TOOLS updated; module
  registered in CLIENT_MODULES and selectable via `--clients trainer,spark`.
- Agent-facing guides added under spark/resources (session-patterns,
  troubleshooting); ARCHITECTURE.md / README updated.

Testing:
- 33 unit tests (metadata, wiring, serialization, mocked-client behavior).
- Updated trainer test_all_phases_mapped: each client module now owns/maps its
  own phases, so the invariant is scoped to trainer's own tools.
- Full unit suite (73 tests) + ruff check/format pass; server loads and
  registers all 5 tools in full and progressive modes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Bellam vedha kousik <bellam.vedhakoushik@gmail.com>

* fix: address Copilot review on spark module

- README: make the `kubeflow-mcp serve` example copy/paste-safe. The prior
  block ended each line with `\` followed by spaces and an inline `#` comment,
  so the backslash did not escape the ... (continued)

3302 of 3759 relevant lines covered (87.84%)

2.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
20
81.88
-9.33% common/utils.py
10
89.47
1.51% conftest.py
7
92.57
0.0% core/server.py
1
99.4
0.0% core/policy.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.11 - 42797333173.1 10 Nov 2026 10:14AM UTC 44
87.84
GitHub Action Run
2 python-3.10 - 42797333173.2 10 Nov 2026 10:14AM UTC 44
87.84
GitHub Action Run
3 python-3.12 - 42797333173.3 10 Nov 2026 10:14AM UTC 44
87.84
GitHub Action Run
Source Files on build 42797333173
  • Tree
  • List 44
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42797333173
  • 9b4f0fa7 on github
  • Prev Build on main (#39626253086)
  • Next Build on main (#42975773254)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc