Commit 7307766
authored
convert typescript-mcp template into a monorepo (#2991)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Reorganizes the TypeScript MCP template into a pnpm monorepo with a
MooseStack service exposing MCP tools and a Next.js web app with an AI
chat UI wired to those tools.
>
> - **Monorepo setup**
> - Add `pnpm-workspace.yaml` and root `package.json` with `dev`,
`dev:moose`, `dev:web` scripts.
> - Rename apps to `packages/moosestack-service` and `packages/web-app`.
> - **MooseStack service (`packages/moosestack-service`)**
> - Implement Express-based MCP server (`app/apis/mcp.ts`) mounted at
`/tools` with tools: `query_clickhouse` (readonly queries, row limits)
and `get_data_catalog` (tables/views with schemas; summary/detailed
output).
> - Add minimal ingest model `DataEvent` and pipeline
(`app/ingest/models.ts`); export APIs/models via `app/index.ts`.
> - Include `moose.config.toml`, `tsconfig.json`, and package metadata.
> - **Web app (`packages/web-app`)**
> - Next.js app with chat UI (AI SDK v5 + Anthropic) that connects to
MCP over HTTP (`/tools`), shows tool invocations, timings, reasoning,
and formatted outputs.
> - Add API routes (`src/app/api/chat/*`), env helpers, UI components,
Tailwind setup, and config files.
> - **Docs & config**
> - Update `README.md` and `template.config.toml` for monorepo workflow
and commands.
> - Add `.gitignore` files and development env defaults.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
6edfddd. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 4c9ec39 commit 7307766
File tree
58 files changed
+54
-39
lines changed- templates/typescript-mcp
- packages
- moosestack-service
- .vscode
- app
- apis
- ingest
- web-app
- src
- app
- api/chat
- status
- components
- layout
- ui
- features/chat
- hooks
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+54
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 22 | | |
29 | 23 | | |
0 commit comments