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

thoughtspot / mcp-server / 16061224324

03 Jul 2025 09:52PM UTC coverage: 88.438% (+0.7%) from 87.716%
16061224324

Pull #32

github

web-flow
Merge 00b1c638d into f2d580300
Pull Request #32: Handle cases where third party cookie is blocked by browsers

97 of 112 branches covered (86.61%)

Branch coverage included in aggregate %.

23 of 23 new or added lines in 2 files covered. (100.0%)

339 of 381 relevant lines covered (88.98%)

62.15 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

22
    const server = new MCPServer({ props });
×
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