Skip to content

Commit 4ad6ce3

Browse files
authored
chore: Scaffold mongodb-mcp-remote package MCP-529 (#1255)
1 parent 9915b93 commit 4ad6ce3

7 files changed

Lines changed: 128 additions & 57 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# mongodb-mcp-remote
2+
3+
> [!NOTE]
4+
> This package is work in progress.
5+
6+
## Usage
7+
8+
```json
9+
{
10+
"mcpServers": {
11+
"MongoDB": {
12+
"command": "npx",
13+
"args": ["-y", "mongodb-mcp-remote@latest"],
14+
"env": {
15+
"MDB_MCP_API_CLIENT_ID": "atlas-mcp-sa-client-id",
16+
"MDB_MCP_API_CLIENT_SECRET": "atlas-mcp-sa-client-secret"
17+
}
18+
}
19+
}
20+
}
21+
```
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "mongodb-mcp-remote",
3+
"description": "MCP stdio proxy that forwards requests to the MongoDB Remote MCP server with OAuth2 client credentials authentication",
4+
"version": "0.0.0",
5+
"private": true,
6+
"type": "module",
7+
"license": "Apache-2.0",
8+
"author": "MongoDB <info@mongodb.com>",
9+
"repository": {
10+
"url": "https://github.com/mongodb-js/mongodb-mcp-server.git",
11+
"directory": "packages/mongodb-mcp-remote"
12+
},
13+
"bin": {
14+
"mongodb-mcp-remote": "./dist/cli.js"
15+
},
16+
"main": "./dist/cli.js",
17+
"files": [
18+
"dist",
19+
"README.md"
20+
],
21+
"engines": {
22+
"node": "^20.19.0 || ^22.13.0 || >= 24.0.0"
23+
},
24+
"scripts": {
25+
"compile": "tsc --project tsconfig.json",
26+
"test": "vitest --run"
27+
},
28+
"devDependencies": {
29+
"@types/node": "^25.6.0",
30+
"typescript": "^5.9.2",
31+
"vitest": "^4.1.8"
32+
}
33+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { describe, expect, it } from "vitest";
2+
3+
describe("mongodb-mcp-remote", () => {
4+
it("is a placeholder unit test", () => {
5+
expect(true).toBe(true);
6+
});
7+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Main entry point for the MongoDB Remote MCP proxy.
5+
*/
6+
async function main(): Promise<void> {
7+
// TODO: Not yet implemented.
8+
}
9+
10+
main().catch((error) => {
11+
process.stderr.write(`Fatal error: ${String(error)}\n`);
12+
process.exit(1);
13+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
6+
"lib": ["ES2022"],
7+
"rootDir": "./src",
8+
"outDir": "./dist",
9+
"strict": true,
10+
"declaration": true,
11+
"declarationMap": true,
12+
"sourceMap": true,
13+
"esModuleInterop": true,
14+
"skipLibCheck": true,
15+
"forceConsistentCasingInFileNames": true
16+
},
17+
"include": ["src/**/*.ts"],
18+
"exclude": ["dist", "node_modules", "src/**/*.test.ts"]
19+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
environment: "node",
6+
globals: true,
7+
include: ["src/**/*.test.ts"],
8+
},
9+
});

0 commit comments

Comments
 (0)