duylinhdang1998/claude-template-agent/mcp-integration

Claude Code and agent skill by duylinhdang1998/claude-template-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Manage MCP (Model Context Protocol) servers - discover, analyze, execute tools. Use for external service integrations, browser automation, documentation lookup, AI image/video generation, database connections, and any MCP server management.

Install

npx vskill@latest install duylinhdang1998/claude-template-agent/mcp-integration

SKILL.md

The same SKILL.md was published earlier as duylinhdang1998/claude-template-agent/mcp-integration.

MCP Integration

Overview

MCP (Model Context Protocol) enables Claude to connect with external tools and services through standardized server interfaces.

Key Benefits:

  • Connect to external APIs and services
  • Browser automation (Playwright)
  • Documentation lookup (context7)
  • Design file editing (pencil)
  • AI multimodal (Gemini for images/videos)
  • Database connections
  • Custom integrations

Available MCP Servers

Built-in Servers
ServerPurposeExample Tools
context7Documentation lookupresolve-library-id, query-docs
playwrightBrowser automationbrowser_navigate, browser_click, browser_snapshot
pencilDesign file editingbatch_get, batch_design, get_screenshot
Check Available Servers
bash
# List configured MCP servers
claude mcp list
# Or check settings
cat ~/.claude/settings.json | grep -A 20 "mcpServers"

Tool Naming Convention

mcp__{server}__{tool}

Examples:

mcp__context7__resolve-library-id
mcp__context7__query-docs
mcp__playwright__browser_navigate
mcp__playwright__browser_snapshot
mcp__pencil__batch_get

Common Use Cases

1. Documentation Lookup (context7)

When implementing unfamiliar library/framework:

typescript
// Step 1: Resolve library ID
mcp__context7__resolve-library-id("react-query")
// Returns: "/tanstack/query"
// Step 2: Query specific topic
mcp__context7__query-docs({
libraryId: "/tanstack/query",
topic: "useQuery hooks"
})
// Returns: Latest documentation

When to use:

  • Implementing new library
  • Checking latest API changes
  • Finding best practices
2. Browser Automation (playwright)

For E2E testing and web automation:

typescript
// Navigate to page
mcp__playwright__browser_navigate({ url: "http://localhost:3000" })
// Take snapshot of current state
mcp__playwright__browser_snapshot()
// Click element
mcp__playwright__browser_click({ selector: "button#submit" })
// Fill form
mcp__playwright__browser_fill_form({
selector: "form#login",
values: { email: "test@test.com", password: "password" }
})
// Take screenshot
mcp__playwright__browser_take_screenshot({ path: "screenshot.png" })
// Close browser
mcp__playwright__browser_close()

When to use:

  • E2E testing
  • Visual verification
  • Form automation
  • Screenshot capture
3. Design Files (pencil)

For working with .pen design files:

typescript
// Get current editor state
mcp__pencil__get_editor_state()
// Read nodes from design
mcp__pencil__batch_get({ patterns: ["**/Button*"] })
// Modify design
mcp__pencil__batch_design({
operations: [
'newButton=I("parent-id", { type: "button", text: "Click me" })'
]
})
// Get screenshot
mcp__pencil__get_screenshot({ nodeId: "some-node-id" })

When to use:

  • UI/UX design work
  • Component design
  • Visual prototyping

Integration in Super Agent

For PM

When assigning tasks that need external services:

markdown
## Task 3.5: Implement Payment Integration
**MCP Required:** Yes
**Server:** stripe (if configured)
Instructions:
1.Use context7 to lookup Stripe SDK docs
2.Implement payment flow
3.Use playwright for E2E testing
For Specialists

Before using MCP tools:

bash
# 1. Check if MCP server is available
claude mcp list
# 2. Check tool schema
# Tools are available as mcp__{server}__{tool}
# 3. Execute tool
# Use directly in Claude conversation
For DevOps/QA

Automated testing with playwright:

typescript
// Test flow example
async function testLoginFlow() {
// Navigate
await mcp__playwright__browser_navigate({ url: "http://localhost:3000/login" })
// Fill form
await mcp__playwright__browser_fill_form({
selector: "form",
values: { email: "test@test.com", password: "password" }
})
// Click submit
await mcp__playwright__browser_click({ selector: "button[type=submit]" })
// Verify redirect
const snapshot = await mcp__playwright__browser_snapshot()
// Check snapshot for dashboard content
}

Configuration

Adding MCP Servers

Edit ~/.claude/settings.json:

json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@anthropic/context7-mcp"]
},
"playwright": {
"command": "npx",
"args": ["@anthropic/playwright-mcp"]
},
"custom-server": {
"command": "node",
"args": ["/path/to/your/mcp-server.js"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Project-Specific Configuration

Add to .claude/settings.json in project root:

json
{
"mcpServers": {
"project-db": {
"command": "npx",
"args": ["@prisma/mcp-server"],
"env": {
"DATABASE_URL": "${DATABASE_URL}"
}
}
}
}

Error Handling

ErrorCauseSolution
Server not foundMCP server not configuredAdd to settings.json
Tool not foundWrong tool nameCheck available tools
Connection failedServer crashedRestart Claude Code
Permission deniedMissing env varsSet required env variables

Best Practices

  1. Check availability first - Verify MCP server is configured
  2. Handle errors gracefully - Services may be unavailable
  3. Use appropriate server - Match tool to task
  4. Document MCP usage - Note in task logs for knowledge base
  5. Don't expose secrets - Use env vars for API keys

Quick Reference

TaskServerTool
Lookup docscontext7query-docs
Navigate browserplaywrightbrowser_navigate
Click elementplaywrightbrowser_click
Take screenshotplaywrightbrowser_take_screenshot
Fill formplaywrightbrowser_fill_form
Get browser stateplaywrightbrowser_snapshot
Read designpencilbatch_get
Edit designpencilbatch_design

Integration with Other Skills

  • Use with test-driven-development for E2E test implementation
  • Use with systematic-debugging for browser-based debugging
  • Use with visual-preview for design documentation
  • Use with qa-testing for automated test suites

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/duylinhdang1998/claude-template-agent/mcp-integration/badge)](https://verified-skill.com/skills/duylinhdang1998/claude-template-agent/mcp-integration)

Something wrong with this skill or its page? Tell us.