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

thoughtspot / mcp-server / 16607055167

29 Jul 2025 08:45PM UTC coverage: 90.536% (-1.2%) from 91.706%
16607055167

Pull #54

github

web-flow
Merge f3908c441 into 586b0d878
Pull Request #54: Png image

190 of 220 branches covered (86.36%)

Branch coverage included in aggregate %.

56 of 70 new or added lines in 7 files covered. (80.0%)

1 existing line in 1 file now uncovered.

671 of 731 relevant lines covered (91.79%)

137.93 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
        clientName: {
21
            clientId: "stdio-client",
22
            clientName: "Stdio Client",
23
            registrationDate: Date.now()
24
        }
25
    };
26

NEW
27
    const server = new MCPServer({ props, env: undefined });
×
28
    await server.init();
×
29

30
    const transport = new StdioServerTransport();
×
31
    await server.connect(transport);
×
32

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

39
    process.on('SIGTERM', () => {
×
40
        console.error('[ThoughtSpot MCP] Received SIGTERM signal. Shutting down...');
×
41
        process.exit(0);
×
42
    });
43

44
    console.log(
×
45
        '[ThoughtSpot MCP] Server is now handling requests. Press Ctrl+C to terminate.',
46
    );
47
}
48

49
main().catch((error) => {
×
50
    console.error("[ThoughtSpot MCP] Error:", error);
×
51
    process.exit(1);
×
52
});
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