mcp

mcp is a cursor rule for Cursor from dotneet/aica. It costs 2 tokens per session (2,574 once invoked), scanned A, original, Apache-2.0.

A TypeScript software library for the Model Context Protocol, a standard way for AI applications to connect to tools and information. It supports building both clients and servers and handling their messages and connections.

In plain words
What is it for?
It is for creating MCP clients or servers, exposing tools and resources, defining prompts, and communicating over standard transports such as local input/output or server-sent events.
Why use it?
It provides the common protocol pieces needed to connect an AI application with external tools, data, and prompts instead of designing a private connection format.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for creating MCP clients or servers, exposing tools and resources, defining prompts, and communicating over standard transports such as local input/output or server-sent events.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/dotneet/aica/mcp
View source ↗ dotneet/aica
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/dotneet/aica

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 mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/dotneet/aica/mcp/github.svg)](https://agentmods.dev/rules/dotneet/aica/mcp)
Your own site
<a href="https://agentmods.dev/rules/dotneet/aica/mcp"><img src="https://agentmods.dev/badge/rules/dotneet/aica/mcp/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 mcp

Your own site · 80×15
<a href="https://agentmods.dev/rules/dotneet/aica/mcp"><img src="https://agentmods.dev/badge/rules/dotneet/aica/mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,574 The whole file, excluding the scripts and references it only reads on demand.
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.00002 $0.02574
Opus 5.5 $0.00001 $0.01030
Sonnet 5.5 $0.00000 $0.00515
Haiku 4.5 $0.00000 $0.00257

Measured 1mo ago against content hash f4daf008ad5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp 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 1mo 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • mcp — 91% identical, 8 lines differ
  • mcp — 91% identical, 8 lines differ
.cursor/rules/mcp.mdc · 466 lines

How it starts

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

Overview

The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements the full MCP specification, making it easy to:

  • Build MCP clients that can connect to any MCP server
  • Create MCP servers that expose resources, prompts and tools
  • Use standard transports like stdio and SSE
  • Handle all MCP protocol messages and lifecycle events

Full Example

import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";

// Create an MCP server
const server = new McpServer({
  name: "Demo",
  version: "1.0.0"
});

// Example: Add a BMI calculator
server.tool(
  // tool name
  "calculate_bmi",
  // description
  "Calculate BMI to see if you are overweight.",
  // input schema
  {
    height: z.number().describe("Height in cm"),
    weight: z.number().describe("Weight in kg"),
  },
  // tool implementation
  async ({ height, weight }) => ({
    content: [{ type: "text", text: String(weight / (height * height)) }],
  }),
);

// Add a dynamic greeting resource
server.resource(
  "greeting",
  new ResourceTemplate("greeting://{name}", { list: undefined }),
  async (uri, { name }) => ({
    contents: [{
      uri: uri.href,
      text: `Hello, ${name}!`
    }]
  })
);

// Start receiving messages on stdin and sending messages on stdout
const transport = new StdioServerTransport();
await server.connect(transport);

What is MCP?

The @Model Context Protocol (MCP) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:

  • Expose data through Resources (think of these sort of like GET endpoints; they are used to load information into the LLM's context)
  • Provide functionality through Tools (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
  • Define interaction patterns through Prompts (reusable templates for LLM interactions)
  • And more!

Read the full file on GitHub · 466 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. 1mo ago First seen · 466 lines · 2 tokens per session scan A f4daf008ad5e

Subscribe to this mod's changes

mcp is a cursor rule published in the GitHub repository dotneet/aica (16 stars, last pushed 11mo ago), licensed Apache-2.0. It adds 2 tokens to every session and 2,574 once invoked, about $0.0000 per session on Opus 5.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-30.