Claude Skill

MCP Integration Reference Pattern

Template for skills that integrate with an MCP server. Demonstrates the reference file pattern: Claude reads a domain-specific MCP cheatsheet before making any tool calls, reducing query failures caused by server-specific gotchas. Fork this skill and replace the Sentry example with your target MCP.

Reviewed community sourceInstallable8 sections3 related pages

Editor's Note

Template for skills that integrate with an MCP server. Demonstrates the reference file pattern: Claude reads a domain-specific MCP cheatsheet before making any tool calls, reducing query failures caused by server-specific gotchas. Fork this skill and replace... Covers what this pattern solves, step 1: read the mcp reference file, step 2: gather scope from user.

Editorial Guide

What to do with this skill

Start with the workflow below, then drop into the upstream source only after the page has narrowed the job for you.

What this skill does

Template for skills that integrate with an MCP server. Demonstrates the reference file pattern: Claude reads a domain-specific MCP cheatsheet before making any tool calls, reducing query failures caused by server-specific gotchas. Fork this skill and replace the Sentry example with your target MCP.

When to use it

Use it when you need Claude Code to follow the workflow defined in the upstream source instead of improvising from generic examples.

Install and setup notes

  • Open the upstream source before treating this page as install-ready, because not every official record is meant to be dropped into a workflow unchanged.
  • Keep the context narrow. These skills are usually strongest when you load only the branch, reference set, or workflow step that matches the current task.
  • If you plan to standardize on this skill for team use, pin the upstream repo and check for updates periodically instead of assuming the official defaults are static.

Example workflow

  1. Start with one narrow task that obviously fits the scope of this Claude Code skill instead of pulling it into every job by default.
  2. Read the overview and first source section, then choose the smallest branch of guidance or references that solves the task in front of you.
  3. Run the change on a real file, command, or workflow, verify the result, and only then widen the skill into a repeatable team pattern.

Compatible agents

This skill is explicitly marked for Claude Code.

Claude Code

Install source

This page does not expose a single copy-paste install command in the normalized record. Use the upstream install source below to confirm the exact steps, file paths, and current setup expectations before you add it to your stack.

Page Outline

What This Pattern SolvesStep 1: Read the MCP Reference FileStep 2: Gather Scope from UserStep 3: Fetch Error DataStep 4: Group and AnalyzeStep 5: Generate ReportSummaryIssue Groups

Source Content

Normalized top-level metadata comes from the directory layer. The body below is the upstream source content for this item.

MCP Integration Reference Pattern

> This is a template skill. It shows how to structure a skill that wraps an MCP server. Replace `sentry` with your MCP server name and adapt the reference file at `references/sentry-mcp.md`.

What This Pattern Solves

When a skill calls an MCP server without prior context, Claude guesses at the query syntax. This works for simple calls but breaks on anything with non-obvious behavior: pagination quirks, required parameter combinations, rate limits, or subtle format restrictions.

The fix: a `references/<mcp-name>.md` file that captures all the gotchas. The skill reads this file before making any MCP call. Zero guessing.

Three types of content go in the reference file:

  • Parameter semantics that differ from what the tool name implies
  • Known error patterns and their root causes
  • Working query examples (copy-paste, no thinking required)

---

Step 1: Read the MCP Reference File

**Before doing anything else**, read the full MCP reference:

Read: references/sentry-mcp.md

This file contains query syntax, known gotchas, and working examples for the Sentry MCP. Do not skip this step.

---

Step 2: Gather Scope from User

Ask the user:

  • **Time range**: Last 24h? 7 days? Custom range?
  • **Environments**: `production`, `staging`, or both?
  • **Projects**: All projects or specific ones? (Default: all)

If the user says "just run it with defaults", use:

  • Time range: last 72 hours
  • Environment: `production` only
  • Projects: all

---

Step 3: Fetch Error Data

Using the tool knowledge from Step 1, fetch:

  • **Issue list**: Active unresolved issues, ordered by frequency
  • **Event details**: Full stack traces for the top 5 issues by event count

Cap results at 50 issues. If more exist, note the count and focus on the highest-frequency items.

---

Step 4: Group and Analyze

Group issues by root cause, not by error message. Two issues with different messages can share the same underlying cause (shared code path, same external dependency, same config).

For each group:

  • Count of issues in the group
  • Earliest first-seen date
  • Affected users count (if available)
  • Most likely root cause (one sentence, evidence-based)
  • Relevant file paths from the stack trace

---

Step 5: Generate Report

Output a markdown report with this structure:

# Error Report: [Project or Scope]

**Period**: [start] to [end]
**Environment**: [env]
**Total active issues**: [N]

## Summary

[2-3 sentences: what is the overall health picture?]

## Issue Groups

### Group 1: [Root Cause Label]

| Attribute      | Value                    |
|----------------|--------------------------|
| Issues         | N                        |
| Total events   | N                        |
| Affected users | N                        |
| First seen     | YYYY-MM-DD               |
| Key file       | path/to/file.py:line     |

**Root cause**: [One paragraph. Specific, evidence-based. Point to file and line.]

**Suggested investigation**: [One or two concrete next steps.]

---

[Repeat for each group]

## Out of Scope

[List issues explicitly excluded and why. Example: "404s on /static/ excluded - expected behavior for SPA asset versioning."]

---

Scope Rules

  • This skill detects and describes issues. It does not modify code or create tickets.
  • If an issue is ambiguous, flag it as "needs investigation" rather than guessing.
  • Do not include informational logs or warnings unless the

<!-- truncated -->

Recommended skills

Next places to browse

Sponsored
MoltAwards: Turn AI agents loose on government contracts & jobs! logo

Turn AI agents loose on government contracts

Learn more