mongodb-mcp-juniper copilot-instructions.md

mongodb-mcp-juniper copilot-instructions.md is an instructions file for GitHub Copilot from aiminnovations/mongodb-mcp-juniper. It costs 797 tokens per session, scanned A, original, Apache-2.0.

Project instructions for a TypeScript and Node.js MCP server that lets agents interact with MongoDB databases and MongoDB Atlas, MongoDB's hosted database service.

In plain words
What is it for?
Use them when adding or changing MongoDB or Atlas tools, resources, tests, and server code in the project.
Why use it?
They explain the project's structure, libraries, coding standards, architecture, and testing approach so changes fit the existing codebase.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/aiminnovations/mongodb-mcp-juniper/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/aiminnovations/mongodb-mcp-juniper

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mongodb-mcp-juniper copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aiminnovations/mongodb-mcp-juniper/copilot-instructions.svg)](https://agentmods.dev/instructions/aiminnovations/mongodb-mcp-juniper/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/aiminnovations/mongodb-mcp-juniper/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/aiminnovations/mongodb-mcp-juniper/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 797 This file is loaded in full into every session.
When invoked 797 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00797 $0.00797
Opus 5 $0.00398 $0.00398
Sonnet 5 $0.00159 $0.00159
Haiku 4.5 $0.00080 $0.00080

Measured 5d ago against content hash 97f60302eb28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mongodb-mcp-juniper copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Overview

This project is a server implementing the MCP (Model Context Protocol) that allows users to interact with their MongoDB clusters and MongoDB Atlas accounts. It is built using TypeScript, Node.js and the official Anthropic @modelcontextprotocol/sdk SDK.

Folder Structure

  • /src: Contains the source code of the MCP Server.
  • /src/tools: Contains the implementation of MCP tools.
  • /src/tools/atlas/: Contains the implementation of MCP tools that are specific to MongoDB Atlas.
  • /src/tools/mongodb/: Contains the implementation of MCP tools that are specific to MongoDB clusters.
  • /src/resources: Contains the implementation of MCP Resources.
  • /tests: Contains the test code for the MCP Server.
  • /tests/accuracy: Contains the test code for the accuracy tests, that use different models to ensure that tools have reliable descriptions.
  • /tests/integration: Contains tests that start the MCP Server and interact with it to ensure that functionality is correct.
  • /tests/unit: Contains simple unit tests to cover specific functionality of the MCP Server.

Libraries and Frameworks

  • Zod for message and schema validation.
  • Express for the HTTP Transport implementation.
  • mongosh NodeDriverServiceProvider for connecting to MongoDB.
  • vitest for testing.
  • @modelcontextprotocol/sdk for the protocol implementation.

Coding Standards

  • For declarations, use types. For usage, rely on type inference unless it is not clear enough.
  • Always follow the eslint and prettier rule formats specified in .eslint.config.js and .prettierrc.json.
  • Use classes for stateful components and functions for stateless pure logic.
  • Use dependency injection to provide dependencies between components.
  • Avoid using global variables as much as possible.
  • New functionality MUST be under test.
    • Tools MUST HAVE integration tests.
    • Tools MUST HAVE unit tests.
    • Tools MAY HAVE accuracy tests.

Architectural Guidelines and Best Practices

Every agent connected to the MCP Server has a Session object attached to it. The Session is the main entrypoint for dependencies to other components. Any component that MUST be used by either a tool or a resource MUST be provided through the Session.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 72 lines · 797 tokens per session scan A 97f60302eb28

Subscribe to this mod's changes

mongodb-mcp-juniper copilot-instructions.md is an instructions file published in the GitHub repository aiminnovations/mongodb-mcp-juniper (0 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 797 tokens to every session, about $0.0040 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.