mongodb-atlas-api-client: Instructions file for GitHub Copilot

.github/copilot-instructions.md

mongodb-atlas-api-client copilot-instructions.md is an instructions file for GitHub Copilot from montumodi/mongodb-atlas-api-client. It costs 2,181 tokens per session, scanned A, original, MIT.

A project guide for a Node.js library that calls the MongoDB Atlas REST API. It describes the library's resource classes, authentication, file structure, and JavaScript and TypeScript conventions.

In plain words
What is it for?
It supports adding or changing Atlas API resources, HTTP calls, query helpers, exports, and TypeScript type definitions.
Why use it?
It helps an agent extend the API client in the same way as its existing resources and preserve its authentication and return-value patterns.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is montumodi/mongodb-atlas-api-client's own configuration. It tells GitHub Copilot how to work on mongodb-atlas-api-client itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mongodb-atlas-api-client configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is const getClient = require('../src/index.js');.

Reuse

Borrowing it

Nothing to install: this file belongs to montumodi/mongodb-atlas-api-client. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/montumodi/mongodb-atlas-api-client/master/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/montumodi/mongodb-atlas-api-client

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-atlas-api-client copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/montumodi/mongodb-atlas-api-client/copilot-instructions/github.svg)](https://agentmods.dev/instructions/montumodi/mongodb-atlas-api-client/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/montumodi/mongodb-atlas-api-client/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/montumodi/mongodb-atlas-api-client/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mongodb-atlas-api-client copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/montumodi/mongodb-atlas-api-client/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/montumodi/mongodb-atlas-api-client/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,181 This file is loaded in full into every session.
When invoked 2,181 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.02181 $0.02181
Opus 5.5 $0.00872 $0.00872
Sonnet 5.5 $0.00436 $0.00436
Haiku 4.5 $0.00218 $0.00218

Measured 23d ago against content hash 3333400a3846, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mongodb-atlas-api-client copilot-instructions.md scanned grade A with 1 finding 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 23d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

This is a MongoDB Atlas API client library for Node.js that provides a programmatic interface to the MongoDB Atlas REST API. The library uses HTTP Digest Authentication and wraps the urllib HTTP client library.
.github/copilot-instructions.md · 248 lines

How it starts

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

MongoDB Atlas API Client - Copilot Instructions

Project Overview

This is a MongoDB Atlas API client library for Node.js that provides a programmatic interface to the MongoDB Atlas REST API. The library uses HTTP Digest Authentication and wraps the urllib HTTP client library.

Architecture and Code Organization

Module Structure

  • Each API resource (User, Cluster, Project, Organization, etc.) is implemented as a separate class in src/
  • Each class follows a consistent pattern:
    • Constructor receives: client, baseUrl, and optionally projectId
    • Methods return promises
    • All API methods accept an optional options parameter
  • The main entry point (src/index.js) exports a factory function that creates instances of all API resource classes
  • TypeScript definitions (.d.ts files) are provided alongside each JavaScript file

Key Components

  • httpClient.js: HTTP client wrapper that handles digest authentication
  • helper.js: Utility functions for query string generation
  • index.js: Main entry point that instantiates and exports all API resource clients

Code Patterns and Conventions

API Method Pattern

async methodName(param1, param2, options = {}) {
  const queryString = getQueryStringFromOptions(options);
  const httpOptions = options.httpOptions;
  const response = await this.client_.fetch(`${this.baseUrl_}/path/${param1}?${queryString}`, {
    "method": "METHOD",
    "data": body,
    ...httpOptions
  });
  return response;
}

Class Pattern

  • Private properties use trailing underscore: this.client_, this.baseUrl_, this.projectId_
  • All methods are async and return promises
  • Methods should handle options parameter for query strings and HTTP options
  • The httpOptions parameter is extracted from options and passed separately (not included in query string)

Naming Conventions

  • Use camelCase for variables and function names
  • Use PascalCase for class names
  • Use descriptive names (e.g., getAll, getById, delete, create, update)
  • Private instance variables end with underscore: this.client_, this.baseUrl_

Read the full file on GitHub · 248 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. 23d ago First seen · 248 lines · 2,181 tokens per session scan A 3333400a3846

Subscribe to this mod's changes

mongodb-atlas-api-client copilot-instructions.md is an instructions file published in the GitHub repository montumodi/mongodb-atlas-api-client (19 stars, last pushed 1mo ago), licensed MIT. It adds 2,181 tokens to every session, about $0.0087 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.

Related

mongodb-atlas-api-client copilot-instructions.md compared with instructions from other repositories

mongodb-atlas-api-client copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mongodb-atlas-api-client copilot-instructions.mdmontumodi/mongodb-atlas-api-clientInstructions file191mo agoMITA2,181GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode