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

thoughtspot / mcp-server / 36671765292
90%

Build:
DEFAULT BRANCH: main
Ran 30 Sep 2026 05:05AM UTC
Jobs 1
Files 43
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

30 Sep 2026 05:04AM UTC coverage: 90.266% (+1.1%) from 89.215%
36671765292

push

github

web-flow
SCAL-320648 mcp changes to support spotter model through tools (#197)

* SCAL-320648 mcp changes to support spotter model through tools

* SCAL-320648 mcp changes to support spotter model through tools

* SCAL-320648 address MCP review feedback on the Spotter Model tools

Rework the Spotter Model feature per review comments on #197:

- Split the merged send_model_message into create_model_session /
  send_model_message / get_model_updates, mirroring the analytical-session
  trio, with finalize_model as the terminal save (like create_dashboard).
  get_model_updates keeps a ~60s poll window since a build runs 1-2 min.

- Drop the parallel model-update stream in the conversation storage DO:
  model updates now ride the same append/read-bookmark message stream as
  Spotter, isolated by conversation id, with the per-turn
  initializeConversation replacing resetDone. What remains is one generic
  opaque /state route for the session's transaction id and generation
  working set. Also skips the read-bookmark write on an idle poll, which
  benefits the V2 path too.

- Move the feature into src/thoughtspot/spotter-model/ following the
  search-objects layout. The stream consumer writes through a
  ModelStreamSink, so the thoughtspot layer no longer imports storage.

- Gate all four tools on data-modeling privileges (DATAMANAGEMENT,
  CAN_MANAGE_WORKSHEET_VIEWS_TABLES, ADMINISTRATION), fail-closed: filtered
  from listTools, and rejected in dispatchTool too since client tool lists
  are cached and can outlive a privilege change.

Also fixes a duplicated toolDefinitionsV3 block that made the branch fail to
build at all, and adds the tests the feature was missing: 815 passing,
coverage 92.1% statements / 87.5% branches (was 78.4/72.1, under the 85%
gate that CI enforces).

Two behavior changes worth noting: a second instruction sent while a turn is
still streaming is now rejected rather than interleaving two turns' updates,
and polling before any instruction was s... (continued)

1246 of 1424 branches covered (87.5%)

Branch coverage included in aggregate %.

352 of 366 new or added lines in 12 files covered. (96.17%)

2176 of 2367 relevant lines covered (91.93%)

1288.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
91.32
0.03% src/servers/mcp-server.ts
5
90.77
-1.78% src/thoughtspot/thoughtspot-service.ts
1
97.3
src/thoughtspot/spotter-model/spotter-model-client.ts
Jobs
ID Job ID Ran Files Coverage
1 36671765292.1 30 Sep 2026 05:05AM UTC 43
90.27
GitHub Action Run
Source Files on build 36671765292
  • Tree
  • List 43
  • Changed 10
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36671765292
  • d232cf91 on github
  • Prev Build on main (#32426858794)
  • Next Build on main (#36789270108)
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