Skip to content

Commit c363dec

Browse files
committed
index.html
1 parent 090a9f2 commit c363dec

File tree

5 files changed

+221
-144
lines changed

5 files changed

+221
-144
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,19 @@
77
# ThoughtSpot MCP Server <br/> ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server') ![Static Badge](https://img.shields.io/badge/cloudflare%20worker-deployed-green?link=https%3A%2F%2Fdash.cloudflare.com%2F485d90aa3d1ea138ad7ede769fe2c35e%2Fworkers%2Fservices%2Fview%2Fthoughtspot-mcp-server%2Fproduction%2Fmetrics) ![GitHub branch check runs](https://img.shields.io/github/check-runs/thoughtspot/mcp-server/main) [![Coverage Status](https://coveralls.io/repos/github/thoughtspot/mcp-server/badge.svg?branch=main)](https://coveralls.io/github/thoughtspot/mcp-server?branch=main)
88

99

10-
11-
The ThoughtSpot MCP Server is a Cloudflare Worker-based service that exposes Model Context Protocol (MCP) endpoints for interacting with ThoughtSpot data and tools. It provides secure OAuth-based authentication and a set of tools for querying and retrieving relevant data from a ThoughtSpot instance.
10+
The ThoughtSpot MCP Server provides secure OAuth-based authentication and a set of tools for querying and retrieving relevant data from your ThoughtSpot instance. It's a remote server hosted on Cloudflare.
1211

1312
## Table of Contents
1413

14+
- [MCP Client Configuration](#mcp-client-configuration)
1515
- [Features](#features)
16-
- [Project Structure](#project-structure)
17-
- [Scripts](#scripts)
18-
- [Usage](#usage)
19-
- [Endpoints](#endpoints)
16+
- [Supported transports](#supported-transports)
17+
- [Contributing](#contributing)
18+
- [Local Development](#local-development)
19+
- [Endpoints](#endpoints)
2020
- [Configuration](#configuration)
21-
- [License](#license)
22-
23-
## Features
24-
25-
- **OAuth Authentication**: Secure endpoints using OAuth flows, as user's own scope.
26-
- **Tools**:
27-
- `ping`: Test connectivity and authentication.
28-
- `getRelevantQuestions`: Get relevant data questions from ThoughtSpot database based on a user query.
29-
- `getAnswer`: Get the answer to a specific question from ThoughtSpot database.
30-
- `createLiveboard`: Create a liveboard from a list of answers.
31-
- **MCP Resources**:
32-
- `datasources`: List of TS Data models the user has access to.
21+
- [Stdio support (fallback)](#stdio-support-fallback)
22+
- [How to obtain a TS_AUTH_TOKEN](#how-to-obtain-a-ts_auth_token)
3323

3424
## MCP Client Configuration
3525

@@ -49,6 +39,17 @@ To configure this MCP server in your MCP client (such as Claude Desktop, Windsur
4939
}
5040
```
5141

42+
## Features
43+
44+
- **OAuth Authentication**: Access your data, as yourself.
45+
- **Tools**:
46+
- `ping`: Test connectivity and authentication.
47+
- `getRelevantQuestions`: Get relevant data questions from ThoughtSpot analytics based on a user query.
48+
- `getAnswer`: Get the answer to a specific question from ThoughtSpot analytics.
49+
- `createLiveboard`: Create a liveboard from a list of answers.
50+
- **MCP Resources**:
51+
- `datasources`: List of ThoughtSpot Data models the user has access to.
52+
5253
### Supported transports
5354

5455
- SSE [/sse]()

package-lock.json

Lines changed: 5 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/handlers.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ import { any } from 'zod';
77
import { encodeBase64Url, decodeBase64Url } from 'hono/utils/encode';
88

99

10+
1011
const app = new Hono<{ Bindings: Env & { OAUTH_PROVIDER: OAuthHelpers } }>()
1112

1213
app.get("/", async (c) => {
13-
return c.json({
14-
message: "Hello, World!",
15-
});
14+
return c.env.ASSETS.fetch('/index.html');
15+
});
16+
17+
app.get("/hello", async (c) => {
18+
return c.json({ message: "Hello, World!" });
1619
});
1720

1821
app.get("/authorize", async (c) => {

0 commit comments

Comments
 (0)