Skip to content

Commit 9eee928

Browse files
committed
feat: add database build and loading functionality
- Introduced a new script to build a SQLite database from markdown documents. - Implemented functions to load definitions and documentation items from the database. - Added search capabilities for definitions and documentation items. - Created a workspace configuration for pnpm to include only built dependencies.
1 parent 89cb89d commit 9eee928

File tree

7 files changed

+695
-3
lines changed

7 files changed

+695
-3
lines changed

.changeset/ripe-clocks-admire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mcp-svelte-docs': patch
3+
---
4+
5+
ship SQLite instead of .md files

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
},
1111
"files": [
1212
"dist",
13-
"docs",
1413
"README.md",
1514
"LICENSE"
1615
],
1716
"scripts": {
18-
"build": "tsc && chmod +x dist/index.js",
17+
"build": "tsc && node dist/build-database.js && chmod +x dist/index.js",
1918
"start": "node dist/index.js",
2019
"dev": "node dist/index.js",
2120
"format": "prettier --write .",
@@ -41,13 +40,15 @@
4140
"dependencies": {
4241
"@tmcp/adapter-valibot": "^0.1.4",
4342
"@tmcp/transport-stdio": "^0.1.3",
43+
"better-sqlite3": "^12.2.0",
4444
"tmcp": "^1.12.2",
4545
"valibot": "^1.1.0"
4646
},
4747
"devDependencies": {
4848
"@changesets/cli": "^2.29.6",
49+
"@types/better-sqlite3": "^7.6.13",
4950
"@types/node": "^24.3.1",
5051
"prettier": "^3.6.2",
5152
"typescript": "^5.9.2"
5253
}
53-
}
54+
}

0 commit comments

Comments
 (0)