Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .claude/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "0.0.1",
"configurations": [
{
"name": "spotter-backend",
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"cd mcp/python-react-agent-simple-ui/server && exec ../.venv/bin/python -m uvicorn claude_agent_with_spotter3_mcp_server:app --reload --port 8001"
],
"port": 8001
},
{
"name": "spotter-history-backend",
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"cd mcp/python-react-agent-simple-ui/server && exec ../.venv/bin/python -m uvicorn claude_agent_with_spotter3_mcp_server_and_chat_history:app --reload --port 8001"
],
"port": 8001
},
{
"name": "spotter-frontend",
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"cd mcp/python-react-agent-simple-ui/client && exec npm run dev"
],
"port": 8000
}
]
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,8 @@ dist
*.egg-info
__pycache__
.env*.local

# Local chat history databases (mcp/python-react-agent-simple-ui)
*.db
*.db-wal
*.db-shm
524 changes: 365 additions & 159 deletions mcp/python-react-agent-simple-ui/README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions mcp/python-react-agent-simple-ui/client/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is a public example: resolve packages from the public npm registry, so
# package-lock.json never records a private registry URL from a machine-level config.
registry=https://registry.npmjs.org/
12 changes: 11 additions & 1 deletion mcp/python-react-agent-simple-ui/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ThoughtSpot Agent</title>
<script>
// Set the theme before first paint (see src/theme.ts, which keeps it in sync).
try {
var theme = localStorage.getItem("theme");
if (theme !== "light" && theme !== "dark") {
theme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
}
document.documentElement.dataset.theme = theme;
} catch (e) {}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
70 changes: 48 additions & 22 deletions mcp/python-react-agent-simple-ui/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions mcp/python-react-agent-simple-ui/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,23 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"typecheck": "tsc -p tsconfig.json"
},
"dependencies": {
"@thoughtspot/visual-embed-sdk": "^1.45.3-mcp.2",
"@thoughtspot/visual-embed-sdk": "^1.52.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^10.1.0",
"rehype-raw": "^7.0.0",
"remark-gfm": "^4.0.1"
},
"devDependencies": {
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^4.4.1",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"vite": "^6.2.0"
}
}
Loading
Loading