agentleFS
WYRE-AIWYRE-AI/itglue-mcp/.github/copilot-instructions.md

itglue-mcp

Copilot instructions17 starsChanged 9 months agoApache-2.0View on GitHub

This file applies to all WYRE MCP servers (autotask-mcp, datto-rmm-mcp, syncro-mcp, halopsa-mcp, ninjaone-mcp, liongard-mcp, connectwise-manage-mcp, connectwise-automate-mcp, itglue-mcp, superops-mcp, atera-mcp, salesbuildr-mcp).

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 2

    1. WYRE-AI/datto-rmm-mcp★ 4100% same
    2. WYRE-AI/syncro-mcp★ 4100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this copilot-instructions.md into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only comment when you have HIGH CONFIDENCE (>80%) that an issue exists

    line 6
  2. Distinctive:

    Do not suggest style changes unless they cause bugs or violate existing patterns

    line 9
  3. Distinctive:

    No hardcoded credentials, API keys, or URLs — everything must come from env vars or gateway headers

    line 26
  4. Very specific:

    Use the corresponding @wyre-technology/node-* client library for API calls, not raw fetch

    line 47
  5. Distinctive:

    Test file structure or test naming

    line 52
  6. Distinctive:

    Import ordering or grouping

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot Code Review Instructions — MCP Server Template

This file applies to all WYRE MCP servers (autotask-mcp, datto-rmm-mcp, syncro-mcp, halopsa-mcp, ninjaone-mcp, liongard-mcp, connectwise-manage-mcp, connectwise-automate-mcp, itglue-mcp, superops-mcp, atera-mcp, salesbuildr-mcp).

Review Philosophy

  • Only comment when you have HIGH CONFIDENCE (>80%) that an issue exists
  • Be concise: one sentence per comment when possible
  • Focus on actionable feedback, not observations
  • Do not suggest style changes unless they cause bugs or violate existing patterns

Project Context

  • Stack: TypeScript (ESM), MCP SDK (@modelcontextprotocol/sdk), vendor-specific Node.js client library
  • Transport: Dual-mode — stdio (local/Claude Desktop) and Streamable HTTP (gateway)
  • Auth modes: Local (env vars) and Gateway (credentials injected via HTTP headers by the gateway proxy)
  • Tool pattern: Decision-tree — a navigation tool exposes domains first, then dynamically loads domain-specific tools to avoid overwhelming Claude with 20+ tools at once
  • Packaging: MCPB bundles (.mcpb) for one-click Claude Desktop install, Docker images for gateway deployment
  • CI/CD: GitHub Actions — CI on push, semantic-release on main, Docker build + MCPB upload on release
  • Testing: Jest with ts-jest

Priority Areas (Review These)

Security

  • Credentials must NEVER be logged, even at debug level — check logger.debug() calls for leaked API keys, tokens, or secrets
  • Gateway header parsing (parseCredentialsFromHeaders) must validate all required fields before use
  • Input validation: tool parameters from Claude must be validated via Zod schemas before hitting vendor APIs
  • No hardcoded credentials, API keys, or URLs — everything must come from env vars or gateway headers
  • HTTP requests to vendor APIs must use HTTPS only

Correctness

  • Tool handlers must return proper MCP error responses (McpError with appropriate ErrorCode), never throw unhandled exceptions
  • Missing credentials should produce a clear error message, not crash the server (warn and continue pattern)
  • Pagination: vendor API calls that return lists must handle pagination correctly (check for next tokens / page counts)
  • Rate limiting: respect vendor API rate limits — check for 429 responses and surface them clearly
  • Resource cleanup: HTTP server must handle SIGINT/SIGTERM gracefully
  • Dual-mode: changes must work in both stdio and HTTP transport modes

Architecture & Patterns

  • Tool registration must follow the decision-tree pattern: navigation tool → domain selection → domain-specific tools
  • Each tool must have a clear Zod input schema with descriptions — Claude uses these to understand parameters
  • Service layer (*Service class) handles all vendor API calls; tool handlers should not make HTTP requests directly
  • Server instructions (getServerInstructions()) must accurately describe available capabilities
  • Config loading: loadEnvironmentConfig() for env vars, mergeWithMcpConfig() for MCP-provided config — don't mix these up
  • MCPB manifest.json: user_config fields must match the env vars the server actually reads
  • .releaserc.json: commit message templates must use \n escape sequences, never literal newlines

Vendor Client Library Usage

  • Use the corresponding @wyre-technology/node-* client library for API calls, not raw fetch
  • Client library methods should handle auth header construction — don't duplicate auth logic in the MCP server
  • Error responses from vendor APIs should be mapped to meaningful MCP error messages, not passed through raw

Do NOT Comment On

  • Test file structure or test naming
  • Minor type annotations that don't affect correctness
  • "Consider adding" suggestions for out-of-scope features
  • Import ordering or grouping
  • Comments that restate what the code does
  • Formatting — that's ESLint's job

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.