Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1a65083

Browse files
authored
feat: support for OIDC connectivity between the MCP Server and a MongoDB Cluster MCP-84 (#450)
1 parent aad10be commit 1a65083

File tree

20 files changed

+684
-89
lines changed

20 files changed

+684
-89
lines changed

‎eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default defineConfig([
6464
"eslint.config.js",
6565
"vitest.config.ts",
6666
"src/types/*.d.ts",
67+
"tests/integration/fixtures/",
6768
]),
6869
eslintPluginPrettierRecommended,
6970
]);

‎package-lock.json

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

‎package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@
6161
"@ai-sdk/openai": "^1.3.23",
6262
"@eslint/js": "^9.30.1",
6363
"@modelcontextprotocol/inspector": "^0.16.0",
64+
"@mongodb-js/oidc-mock-provider": "^0.11.3",
6465
"@redocly/cli": "^1.34.4",
6566
"@types/express": "^5.0.1",
6667
"@types/http-proxy": "^1.17.16",
6768
"@types/node": "^24.0.12",
6869
"@types/proper-lockfile": "^4.1.4",
70+
"@types/semver": "^7.7.0",
6971
"@types/simple-oauth2": "^5.0.7",
7072
"@types/yargs-parser": "^21.0.3",
7173
"@vitest/coverage-v8": "^3.2.4",
@@ -81,6 +83,7 @@
8183
"openapi-typescript": "^7.8.0",
8284
"prettier": "^3.6.2",
8385
"proper-lockfile": "^4.1.2",
86+
"semver": "^7.7.2",
8487
"simple-git": "^3.28.0",
8588
"tsx": "^4.20.3",
8689
"typescript": "^5.8.3",

‎src/common/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ function getLocalDataPath(): string {
151151
: path.join(os.homedir(), ".mongodb");
152152
}
153153

154-
export const defaultDriverOptions: ConnectionInfo["driverOptions"] = {
154+
export type DriverOptions = ConnectionInfo["driverOptions"];
155+
export const defaultDriverOptions: DriverOptions = {
155156
readConcern: {
156157
level: "local",
157158
},
@@ -345,8 +346,8 @@ export function setupDriverConfig({
345346
defaults,
346347
}: {
347348
config: UserConfig;
348-
defaults: ConnectionInfo["driverOptions"];
349-
}): ConnectionInfo["driverOptions"] {
349+
defaults: Partial<DriverOptions>;
350+
}): DriverOptions {
350351
const { driverOptions } = generateConnectionInfoFromCliArgs(config);
351352
return {
352353
...defaults,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /