Skip to content
Open
Show file tree
Hide file tree
Changes from 11 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist
node_modules

.vscode/mcp.json
.github/prompts/*

Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import enforceZodV4 from "./eslint-rules/enforce-zod-v4.js";

const testFiles = ["tests/**/*.test.ts", "tests/**/*.ts"];

const files = [...testFiles, "src/**/*.ts", "scripts/**/*.ts"];
const files = [...testFiles, "src/**/*.ts", "src/**/*.tsx", "scripts/**/*.ts"];

export default defineConfig([
{ files, plugins: { js }, extends: ["js/recommended"] },
Expand Down Expand Up @@ -85,6 +85,7 @@ export default defineConfig([
"global.d.ts",
"eslint.config.js",
"vitest.config.ts",
"vite.ui.config.ts",
"src/types/*.d.ts",
"tests/integration/fixtures/",
"eslint-rules",
Expand Down
21 changes: 18 additions & 3 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,26 @@
"src/index.ts!",
"src/lib.ts!",
"src/tools/index.ts!",
"src/ui/index.ts!",
"tests/**/*.ts",
"scripts/**/*.ts",
"eslint-rules/*.js"
"eslint-rules/*.js",
"vite.ui.config.ts"
],
"ignore": [
"tests/integration/fixtures/curl.mjs",
"tests/vitest.d.ts",
"src/ui/build/mount.tsx",
"src/ui/components/**/*.ts",
"src/ui/components/**/*.tsx",
"src/ui/hooks/**/*.ts"
],
"ignoreDependencies": [
"@mongodb-js/atlas-local",
"@emotion/css",
"@leafygreen-ui/table",
"react",
"react-dom"
],
"ignore": ["tests/integration/fixtures/curl.mjs", "tests/vitest.d.ts"],
"ignoreDependencies": ["@mongodb-js/atlas-local"],
"ignoreExportsUsedInFile": true
}
24 changes: 23 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
"types": "./dist/cjs/tools/index.d.ts",
"default": "./dist/cjs/tools/index.js"
}
},
"./ui": {
"import": {
"types": "./dist/esm/ui/index.d.ts",
"default": "./dist/esm/ui/index.js"
},
"require": {
"types": "./dist/cjs/ui/index.d.ts",
"default": "./dist/cjs/ui/index.js"
}
}
},
"main": "./dist/cjs/lib.js",
Expand All @@ -51,8 +61,9 @@
"build:update-package-version": "tsx scripts/updatePackageVersion.ts",
"build:esm": "tsc --project tsconfig.esm.json && chmod +x dist/esm/index.js",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build:ui": "vite build --config vite.ui.config.ts",
"build:universal-package": "tsx scripts/createUniversalPackage.ts",
"build": "pnpm run build:clean && concurrently \"pnpm run build:esm\" \"pnpm run build:cjs\" && pnpm run build:universal-package",
"build": "pnpm run build:clean && concurrently \"pnpm run build:esm\" \"pnpm run build:cjs\" && pnpm run build:ui && pnpm run build:universal-package",
"inspect": "pnpm run build && mcp-inspector -- dist/esm/index.js",
"prettier": "prettier",
"check": "concurrently \"pnpm run build\" \"pnpm run check:types\" \"pnpm run check:lint\" \"pnpm run check:format\" \"pnpm run check:dependencies\"",
Expand Down Expand Up @@ -86,9 +97,12 @@
"@types/express": "^5.0.3",
"@types/node": "^24.5.2",
"@types/proper-lockfile": "^4.1.4",
"@types/react": "^18.3.0",
"@types/react-dom": "^19.2.3",
"@types/semver": "^7.7.0",
"@types/yargs-parser": "^21.0.3",
"@typescript-eslint/parser": "^8.44.0",
"@vitejs/plugin-react": "^5.1.1",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/eslint-plugin": "^1.3.4",
"concurrently": "^9.2.1",
Expand All @@ -112,9 +126,15 @@
"typescript": "^5.9.2",
"typescript-eslint": "^8.41.0",
"uuid": "^13.0.0",
"vite": "^5.4.21",
"vite-plugin-node-polyfills": "^0.24.0",
"vite-plugin-singlefile": "^2.3.0",
"vitest": "^3.2.4"
},
"dependencies": {
"@emotion/css": "^11.13.5",
"@leafygreen-ui/table": "^15.2.2",
"@mcp-ui/server": "^5.13.1",
"@modelcontextprotocol/sdk": "^1.24.2",
"@mongodb-js/device-id": "^0.3.1",
"@mongodb-js/devtools-proxy-support": "^0.5.3",
Expand All @@ -132,6 +152,8 @@
"node-machine-id": "1.1.12",
"oauth4webapi": "^3.8.0",
"openapi-fetch": "^0.15.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies or devDependencies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, good point! Will update to dev

"ts-levenshtein": "^1.0.7",
"voyage-ai-provider": "^2.0.0",
"zod": "^3.25.76"
Expand Down
Loading
Loading