You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-8Lines changed: 49 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,25 +321,66 @@ Make sure to add the following entries in your ThoughtSpot instance:
321
321
npm run dev
322
322
```
323
323
324
+
### Adding New Tools
325
+
326
+
When adding new MCP tools to the server:
327
+
328
+
1.**Define schemas and tools** in `src/servers/tool-definitions.ts`
329
+
2.**Implement handlers** in `src/servers/mcp-server.ts`
330
+
3.**Update version registry** in `src/servers/version-registry.ts`:
331
+
- Add new tools to appropriate version(s) in `VERSION_REGISTRY`
332
+
- For new stable features, update `DEFAULT_VERSION`
333
+
- For beta features, add to the `beta` version entry
334
+
4.**Add tests** for new tools and version configurations
335
+
5.**Update documentation** in README.md
336
+
337
+
**Important:** The version registry controls which tools are available in each API version. Make sure to add new tools to the correct version configuration to ensure they're accessible to users.
-`/token/mcp`: MCP HTTP Streaming with bearer auth (supports `?api-version=beta`)
334
-
-`/token/sse`: Server-sent events with bearer auth (supports `?api-version=beta`)
348
+
-`/token/mcp`: MCP HTTP Streaming with bearer auth (supports `?api-version`)
349
+
-`/token/sse`: Server-sent events with bearer auth (supports `?api-version`)
335
350
336
351
**Deprecated endpoints:**
337
352
-`/bearer/mcp`, `/bearer/sse`: Legacy MCP endpoints with bearer auth (**deprecated**, no `api-version` support). Use `/token/*` endpoints instead.
338
353
339
-
**Beta Tools Access:**
354
+
**API Versioning:**
355
+
356
+
The ThoughtSpot MCP Server supports API versioning to access different tool sets. You can specify the version using the `api-version` query parameter on OAuth and `/token/*` endpoints (not supported on deprecated `/bearer/*` endpoints).
357
+
358
+
**Version Formats:**
359
+
-**Beta version**: `?api-version=beta` - Access the latest beta features
360
+
-**Date-based version**: `?api-version=YYYY-MM-DD` - Access tools from a specific release date or the latest version on or before that date
361
+
-**Default** (no parameter): Returns the stable default tool set
0 commit comments