Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
21 changes: 21 additions & 0 deletions packages/mongodb-mcp-remote/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# mongodb-mcp-remote

> [!NOTE]
> This package is work in progress.

## Usage

```json
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": ["-y", "mongodb-mcp-remote@latest"],
"env": {
"MDB_MCP_API_CLIENT_ID": "atlas-mcp-sa-client-id",
"MDB_MCP_API_CLIENT_SECRET": "atlas-mcp-sa-client-secret"
}
}
}
}
```
33 changes: 33 additions & 0 deletions packages/mongodb-mcp-remote/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "mongodb-mcp-remote",
"description": "MCP stdio proxy that forwards requests to the MongoDB Remote MCP server with OAuth2 client credentials authentication",
"version": "0.0.0",
"private": true,
"type": "module",
"license": "Apache-2.0",
"author": "MongoDB <info@mongodb.com>",
"repository": {
"url": "https://github.com/mongodb-js/mongodb-mcp-server.git",
"directory": "packages/mongodb-mcp-remote"
},
"bin": {
"mongodb-mcp-remote": "./dist/cli.js"
},
"main": "./dist/cli.js",
"files": [
"dist",
"README.md"
],
"engines": {
"node": "^20.19.0 || ^22.13.0 || >= 24.0.0"
},
"scripts": {
"compile": "tsc --project tsconfig.json",
"test": "vitest --run"
},
"devDependencies": {
"@types/node": "^25.6.0",
"typescript": "^5.9.2",
"vitest": "^4.1.8"
}
}
13 changes: 13 additions & 0 deletions packages/mongodb-mcp-remote/src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env node

/**
* Main entry point for the MongoDB Remote MCP proxy.
*/
async function main(): Promise<void> {
// TODO: Not yet implemented.
}

main().catch((error) => {
process.stderr.write(`Fatal error: ${String(error)}\n`);
process.exit(1);
});
7 changes: 7 additions & 0 deletions packages/mongodb-mcp-remote/tests/unit/placeholder.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from "vitest";

describe("mongodb-mcp-remote", () => {
it("is a placeholder unit test", () => {
expect(true).toBe(true);
});
});
19 changes: 19 additions & 0 deletions packages/mongodb-mcp-remote/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2022"],
"rootDir": "./src",
"outDir": "./dist",
"strict": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*.ts"],
"exclude": ["dist", "node_modules", "tests"]
}
9 changes: 9 additions & 0 deletions packages/mongodb-mcp-remote/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
globals: true,
include: ["tests/**/*.test.ts"],
},
});
Loading
Loading