Skip to main content
Glama
counterlure-mcp

counterlure-mcp

Official

audit_local_mcp_config

Read-only

Audits local MCP server configurations across AI tools and project files to flag unsafe launches, unpinned packages, plaintext remotes, and registry risks before you trust a repository.

Instructions

Use when the user asks whether their AI tools are safe, after adding an MCP server, or before trusting a repository that ships one. Reads the MCP server lists of Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Gemini CLI, Amazon Q and Zed on this computer, plus a project folder's .mcp.json, .cursor/mcp.json, .vscode/mcp.json if given. Flags servers launched with npx/uvx/pnpm dlx and no exact version (every start runs whatever was last published), shell or inline-code launches, plaintext remote servers, scopes one letter from @modelcontextprotocol, and servers a repository asks to add. Environment variable and header values are never read, only their names. With check_registry, each npm package name (nothing else) is looked up for a single maintainer, a first publish under 14 days ago, a version from the last 3 days, a missing source repository, or a name nobody has registered.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_local_mcp_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_dirNoOptional absolute path to a project folder whose own MCP config files should be read too.
check_registryNoLook each npm package name up on registry.npmjs.org. Off by default; sends package names only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.1

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say read-only, non-destructive and open-world; the description adds the critical privacy constraint that environment variable and header values are 'never read, only their names,' and that check_registry sends 'package names only' to registry.npmjs.org. These details explain the openWorldHint consequence and tell the agent exactly what leaves the machine, which annotations alone could not.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the triggering situations before the mechanics, and every clause carries information (platform list, file paths, risk categories, privacy boundary). It is dense and the flag enumeration runs long, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, two optional parameters, and the description covers inputs, scope of files read, the categories of findings, and the network behavior. What an agent still lacks is the shape of the result (list? severity ranking? counts?), a minor gap for a read-only audit tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds meaning: project_dir is narrowed to 'a project folder's .mcp.json, .cursor/mcp.json, .vscode/mcp.json,' and check_registry is scoped to npm package names 'nothing else.' That is genuine added semantics about scope and data egress beyond the schema's one-line glosses.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('reads the MCP server lists of Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Gemini CLI, Amazon Q and Zed... plus a project folder's .mcp.json') and enumerates exactly what it flags. An agent can distinguish this from repo-inspection siblings like inspect_local_repo or check_repo purely from the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives three concrete trigger conditions: 'when the user asks whether their AI tools are safe, after adding an MCP server, or before trusting a repository that ships one.' That is clear when-to-use guidance. It stops short of naming sibling tools or stating when-not to use it, so it does not reach the top band.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.