ai-mcp-development

ai-mcp-development is a cursor rule for Cursor from bambooshadow-studio/mcp-power-pack. It costs 357 tokens per session, scanned A, original, MIT.

A set of coding rules for developing and debugging MCP servers and tools. MCP is a way for an application to call tools provided by another program.

In plain words
What is it for?
Use it to build or debug MCP servers in Python or JavaScript, configure them for clients such as Claude Desktop or Cursor, and test stdio or SSE connections.
Why use it?
It gives guidance for clear tool boundaries, input validation, structured results, error handling, configuration, and testing.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to build or debug MCP servers in Python or JavaScript, configure them for clients such as Claude Desktop or Cursor, and test stdio or SSE connections.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bambooshadow-studio/mcp-power-pack/ai-mcp-development
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.

Clone the repo
git clone --depth 1 https://github.com/bambooshadow-studio/mcp-power-pack

Made for: Cursor.

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 ai-mcp-development

README.md
[![agentmods](https://agentmods.dev/badge/rules/bambooshadow-studio/mcp-power-pack/ai-mcp-development.svg)](https://agentmods.dev/rules/bambooshadow-studio/mcp-power-pack/ai-mcp-development)
Your own site
<a href="https://agentmods.dev/rules/bambooshadow-studio/mcp-power-pack/ai-mcp-development"><img src="https://agentmods.dev/badge/rules/bambooshadow-studio/mcp-power-pack/ai-mcp-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 357 This file is loaded in full into every session.
When invoked 357 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00357 $0.00357
Opus 5 $0.00179 $0.00179
Sonnet 5 $0.00071 $0.00071
Haiku 4.5 $0.00036 $0.00036

Measured 6d ago against content hash c2ccd7913712, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ai-mcp-development 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 6d 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.

pro/cursor-rules/ai-mcp-development.mdc · 61 lines

What it actually says

Rule Name: ai-mcp-development Description: Guidelines for developing and debugging MCP servers and tools. Filters:

  • file: "*.py"
  • file: "*.js"
  • file: "*.ts"
  • file: "*.json"
  • file: "*.yaml"

// MCP DEVELOPMENT GUIDELINES

MCP Server Structure

# Python MCP Server
from mcp.server import Server
from mcp.server.stdio import stdio_server

server = Server("my-tool")

@server.tool()
async def my_tool(param: str) -> str:
    """Tool description."""
    return f"Result: {param}"

async def main():
    async with stdio_server() as streams:
        await server.run(streams[0], streams[1])

Tool Design Rules

  1. Each tool should do ONE thing well
  2. Clear parameter names with descriptions
  3. Return structured data (JSON, Markdown)
  4. Handle errors gracefully with descriptive messages
  5. Include input validation

Configuration Pattern

// Claude Desktop / Cursor config
{
  "mcpServers": {
    "my-server": {
      "command": "python",
      "args": ["-m", "my_server"],
      "env": {}
    }
  }
}

Testing MCP Servers

  1. Test with MCP Inspector: npx @modelcontextprotocol/inspector
  2. Test error paths (missing params, invalid input)
  3. Test with both stdio and SSE transport

Debugging

  • Check stdout/stderr for error messages
  • Use mcp-server/inspector for interactive testing
  • Verify env vars are properly passed
  • Check Node.js and Python versions
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. 6d ago First seen · 61 lines · 357 tokens per session scan A c2ccd7913712

Subscribe to this mod's changes

ai-mcp-development is a cursor rule published in the GitHub repository bambooshadow-studio/mcp-power-pack (1 stars, last pushed 2mo ago), licensed MIT. It adds 357 tokens to every session, about $0.0018 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.