Skip to content

Commit f1aef9c

Browse files
committed
chore: great monorepo restructuring
1 parent 6c07253 commit f1aef9c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+629
-306
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ bun.lockb
88
# Miscellaneous
99
/static/
1010
/drizzle/
11+
/**/.svelte-kit/*
File renamed without changes.

apps/mcp-remote/.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
11+
# OS
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Env
16+
.env
17+
.env.*
18+
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*
24+
25+
# SQLite
26+
*.db
27+
dist
File renamed without changes.

apps/mcp-remote/package.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"name": "@sveltejs/mcp-remote",
3+
"version": "0.0.1",
4+
"description": "The official Svelte MCP server implementation",
5+
"type": "module",
6+
"main": "src/index.js",
7+
"bin": {
8+
"svelte-mcp": "./dist/lib/stdio.js"
9+
},
10+
"scripts": {
11+
"start": "node src/index.js",
12+
"dev": "vite dev",
13+
"build": "vite build",
14+
"build:mcp": "tsc --project tsconfig.build.json",
15+
"prepublishOnly": "pnpm build:mcp",
16+
"preview": "vite preview",
17+
"prepare": "svelte-kit sync || echo ''",
18+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
19+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
20+
"format": "prettier --write .",
21+
"lint": "prettier --check . && eslint .",
22+
"lint:fix": "prettier --write . && eslint . --fix",
23+
"test:unit": "vitest",
24+
"test": "npm run test:unit -- --run",
25+
"test:watch": "npm run test:unit -- --watch",
26+
"db:push": "drizzle-kit push",
27+
"db:generate": "drizzle-kit generate",
28+
"db:migrate": "drizzle-kit migrate",
29+
"db:studio": "drizzle-kit studio",
30+
"inspect": "pnpm mcp-inspector"
31+
},
32+
"keywords": [
33+
"svelte",
34+
"tmcp",
35+
"mcp",
36+
"server"
37+
],
38+
"private": true,
39+
"devDependencies": {
40+
"@eslint/compat": "^1.3.2",
41+
"@eslint/js": "^9.36.0",
42+
"@libsql/client": "^0.14.0",
43+
"@modelcontextprotocol/inspector": "^0.16.7",
44+
"@sveltejs/adapter-vercel": "^5.6.3",
45+
"@sveltejs/kit": "^2.22.0",
46+
"@sveltejs/vite-plugin-svelte": "^6.0.0",
47+
"@types/node": "^24.3.1",
48+
"@typescript-eslint/parser": "^8.44.0",
49+
"drizzle-kit": "^0.30.2",
50+
"drizzle-orm": "^0.40.0",
51+
"eslint-config-prettier": "^10.0.1",
52+
"eslint-plugin-svelte": "^3.12.3",
53+
"globals": "^16.0.0",
54+
"prettier": "^3.4.2",
55+
"prettier-plugin-svelte": "^3.3.3",
56+
"svelte": "^5.0.0",
57+
"svelte-check": "^4.0.0",
58+
"svelte-eslint-parser": "^1.3.2",
59+
"typescript": "^5.0.0",
60+
"vite": "^7.0.4",
61+
"vite-plugin-devtools-json": "^1.0.0",
62+
"vitest": "^3.2.3"
63+
},
64+
"dependencies": {
65+
"@sveltejs/mcp-schema": "workspace:^",
66+
"@sveltejs/mcp-server": "workspace:^",
67+
"@tmcp/transport-http": "^0.6.2"
68+
}
69+
}
File renamed without changes.
File renamed without changes.

src/hooks.server.ts renamed to apps/mcp-remote/src/hooks.server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { http_transport } from '$lib/mcp/index.js';
2+
import { db } from '$lib/server/db';
23

34
export async function handle({ event, resolve }) {
4-
const mcp_response = await http_transport.respond(event.request);
5+
const mcp_response = await http_transport.respond(event.request, {
6+
db,
7+
});
58
// we are deploying on vercel the SSE connection will timeout after 5 minutes...for
69
// the moment we are not sending back any notifications (logs, or list changed notifications)
710
// so it's a waste of resources to keep a connection open that will error
File renamed without changes.

apps/mcp-remote/src/lib/index.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)