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

thoughtspot / mcp-server / 15691145450

16 Jun 2025 08:23PM UTC coverage: 19.595% (-0.04%) from 19.63%
15691145450

Pull #31

github

web-flow
Merge f989fca49 into b46edf0d4
Pull Request #31: Add locale header for every request with ThoughtSpot Rest client

9 of 98 branches covered (9.18%)

Branch coverage included in aggregate %.

3 of 8 new or added lines in 1 file covered. (37.5%)

78 of 346 relevant lines covered (22.54%)

0.42 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

© 2025 Coveralls, Inc