Skip to content

Commit db381e1

Browse files
authored
Merge branch 'main' into MCP-264
2 parents a959af3 + c64df57 commit db381e1

File tree

10 files changed

+986
-158
lines changed

10 files changed

+986
-158
lines changed

package-lock.json

Lines changed: 26 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@
3737
"prepare": "npm run build",
3838
"build:clean": "rm -rf dist",
3939
"build:update-package-version": "tsx scripts/updatePackageVersion.ts",
40-
"build:esm": "tsc --project tsconfig.esm.json",
40+
"build:esm": "tsc --project tsconfig.esm.json && chmod +x dist/esm/index.js",
4141
"build:cjs": "tsc --project tsconfig.cjs.json",
4242
"build:universal-package": "tsx scripts/createUniversalPackage.ts",
43-
"build:chmod": "chmod +x dist/esm/index.js",
44-
"build": "npm run build:clean && npm run build:esm && npm run build:cjs && npm run build:universal-package && npm run build:chmod",
43+
"build": "npm run build:clean && concurrently \"npm run build:esm\" \"npm run build:cjs\" && npm run build:universal-package",
4544
"inspect": "npm run build && mcp-inspector -- dist/esm/index.js",
4645
"prettier": "prettier",
47-
"check": "npm run build && npm run check:types && npm run check:lint && npm run check:format && npm run check:dependencies",
46+
"check": "concurrently \"npm run build\" \"npm run check:types\" \"npm run check:lint\" \"npm run check:format\" \"npm run check:dependencies\"",
4847
"check:lint": "eslint .",
4948
"check:dependencies": "knip --strict",
5049
"check:format": "prettier -c .",
@@ -76,7 +75,7 @@
7675
"@typescript-eslint/parser": "^8.44.0",
7776
"@vitest/coverage-v8": "^3.2.4",
7877
"@vitest/eslint-plugin": "^1.3.4",
79-
"ai": "^5.0.72",
78+
"concurrently": "^9.2.1",
8079
"duplexpair": "^1.0.2",
8180
"eslint": "^9.34.0",
8281
"eslint-config-prettier": "^10.1.8",
@@ -104,6 +103,7 @@
104103
"@mongodb-js/devtools-proxy-support": "^0.5.3",
105104
"@mongosh/arg-parser": "^3.19.0",
106105
"@mongosh/service-provider-node-driver": "^3.17.0",
106+
"ai": "^5.0.72",
107107
"bson": "^6.10.4",
108108
"express": "^5.1.0",
109109
"lru-cache": "^11.1.0",
@@ -116,6 +116,7 @@
116116
"oauth4webapi": "^3.8.0",
117117
"openapi-fetch": "^0.14.0",
118118
"ts-levenshtein": "^1.0.7",
119+
"voyage-ai-provider": "^2.0.0",
119120
"yargs-parser": "21.1.1",
120121
"zod": "^3.25.76"
121122
},

src/common/errors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ export enum ErrorCodes {
44
ForbiddenCollscan = 1_000_002,
55
ForbiddenWriteOperation = 1_000_003,
66
AtlasSearchNotSupported = 1_000_004,
7+
NoEmbeddingsProviderConfigured = 1_000_005,
8+
AtlasVectorSearchIndexNotFound = 1_000_006,
9+
AtlasVectorSearchInvalidQuery = 1_000_007,
710
}
811

912
export class MongoDBError<ErrorCode extends ErrorCodes = ErrorCodes> extends Error {

0 commit comments

Comments
 (0)