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

thoughtspot / mcp-server / 16633091239

30 Jul 2025 08:30PM UTC coverage: 92.389% (-0.09%) from 92.477%
16633091239

Pull #54

github

web-flow
Merge 25cca711a into a8f556ab2
Pull Request #54: Png image

194 of 220 branches covered (88.18%)

Branch coverage included in aggregate %.

50 of 58 new or added lines in 7 files covered. (86.21%)

4 existing lines in 2 files now uncovered.

680 of 726 relevant lines covered (93.66%)

140.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/stdio.ts
1
#!/usr/bin/env node
2

3
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
import { MCPServer } from "./servers/mcp-server.js";
5
import type { Props } from "./utils.js";
6
import { validateAndSanitizeUrl } from "./oauth-manager/oauth-utils.js";
7

8
async function main() {
9
    const instanceUrl = process.env.TS_INSTANCE;
×
10
    const accessToken = process.env.TS_AUTH_TOKEN;
×
11

12
    if (!instanceUrl || !accessToken) {
×
13
        console.error("Error: TS_INSTANCE and TS_AUTH_TOKEN environment variables must be set");
×
14
        process.exit(1);
×
15
    }
16

17
    const props: Props = {
×
18
        instanceUrl: validateAndSanitizeUrl(instanceUrl),
19
        accessToken
20
    };
21

NEW
22
    const server = new MCPServer({ props, env: undefined });
×
23
    await server.init();
×
24

25
    const transport = new StdioServerTransport();
×
26
    await server.connect(transport);
×
27

28
    // Handle shutdown signals
29
    process.on('SIGINT', () => {
×
30
        console.error('[ThoughtSpot MCP] Received SIGINT signal. Shutting down...');
×
31
        process.exit(0);
×
32
    });
33

34
    process.on('SIGTERM', () => {
×
35
        console.error('[ThoughtSpot MCP] Received SIGTERM signal. Shutting down...');
×
36
        process.exit(0);
×
37
    });
38

39
    console.log(
×
40
        '[ThoughtSpot MCP] Server is now handling requests. Press Ctrl+C to terminate.',
41
    );
42
}
43

44
main().catch((error) => {
×
45
    console.error("[ThoughtSpot MCP] Error:", error);
×
46
    process.exit(1);
×
47
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc