Usage Examples

Real-world scenarios demonstrating effective use of the MCP plugin for documentation access, semantic code analysis, and custom MCP server development.

Examples

Setting Up Documentation for a New Project

Scenario: You're starting a new Next.js project with Prisma and want up-to-date documentation access from the start.

# Set up the project
> npx create-next-app@latest my-app

# Install the MCP plugin
> /plugin install mcp@NeoLabHQ/context-engineering-kit

# Configure documentation access
> /mcp:setup-context7-mcp nextjs 14, prisma, typescript, zod

Expected Flow:

  1. Command checks if Context7 MCP is already configured

  2. If not, guides you through installation for your environment

  3. Searches Context7 for documentation IDs for each technology

  4. Updates CLAUDE.md with recommended library IDs

Result in CLAUDE.md:

Using the Documentation:

After setup, when you ask about Next.js Server Actions or Prisma relations, the LLM queries Context7 for current documentation instead of relying on potentially outdated training data.


Auto-Detecting Project Technologies

Scenario: You've inherited a project and want to set up documentation access without manually listing all dependencies.

Expected Flow:

  1. Command scans package.json, requirements.txt, or other dependency files

  2. Identifies React, Redux, Express, and PostgreSQL

  3. Searches Context7 for matching documentation

  4. Updates CLAUDE.md with discovered technologies

When Analysis Finds Technologies:


Setting Up Codebase Visualization with Codemap

Scenario: You want to visualize your codebase structure, track changes, and enable AI-assisted navigation hooks.

Expected Flow:

  1. Command checks if Codemap is already installed via codemap --version

  2. If not installed, detects your OS and provides installation instructions

  3. Fetches latest Codemap documentation from GitHub

  4. Guides through installation (Homebrew for macOS/Linux, Scoop for Windows)

  5. Verifies installation with test commands

  6. Updates CLAUDE.md with usage instructions and hook configuration

  7. Adds .codemap/ to .gitignore

Setup Interaction:

After Successful Setup:

Using Codemap:


Setting Up Semantic Code Analysis for a Large Codebase

Scenario: You're working on a large monorepo and need better code navigation than grep can provide.

Expected Flow:

  1. Command checks for Serena availability

  2. Verifies uv is installed

  3. Detects your MCP client (Claude Code in this case)

  4. Guides through configuration if needed

  5. Initializes project indexing

  6. Updates CLAUDE.md with usage guidelines

Setup Interaction:

After Successful Setup:

Using Semantic Operations:


Combining Context7 and Serena for Maximum Effectiveness

Scenario: You want both documentation access and semantic code understanding for a complex project.

Result in CLAUDE.md:

Workflow Benefits:

  1. When implementing a new GraphQL resolver, Context7 provides current Apollo Client patterns

  2. When refactoring, Serena finds all symbol usages across the codebase

  3. Both tools work together: documentation for "how to do it", semantic analysis for "where to do it"


Setting Up Academic Paper Search via Docker MCP

Scenario: You're conducting research and need to search and read academic papers from arXiv, Semantic Scholar, and other sources.

Expected Flow:

  1. Command checks if Docker MCP is available

  2. If not, guides you through Docker Desktop installation

  3. Searches for and adds paper-search MCP server from Docker catalog

  4. Activates the server's tools in your session

  5. Tests the connection with a sample search

  6. Updates CLAUDE.md with usage instructions

Setup Interaction:

Using Paper Search:

Available Sources:

Tool
Source
Best For

search_arxiv

arXiv

Physics, Math, CS preprints

search_pubmed

PubMed

Biomedical literature

search_semantic

Semantic Scholar

AI-powered search with year filters

search_biorxiv

bioRxiv

Biology preprints

search_medrxiv

medRxiv

Medical preprints

search_iacr

IACR ePrint

Cryptography research

search_crossref

CrossRef

DOI-based citation metadata

search_google_scholar

Google Scholar

Broad academic search


Building a Custom MCP Server for Slack Integration

Scenario: Your team uses Slack extensively and you want the LLM to interact with Slack channels and messages.

Phase 1 Output - Research and Planning:

Phase 2 - Implementation Example:

Phase 4 - Evaluation Questions:


Building a Python MCP Server for Internal API

Scenario: Your company has an internal API for managing customer data and you want LLM access.

Design Principles Applied:

We return:

Actionable Errors

Instead of:

We return:

How MCP Enhances Each Phase:

Phase
MCP Contribution

Research

Context7 provides current API documentation

Implementation

Serena finds related code and symbols

Review

Serena enables precise code navigation during critique

Documentation

Context7 ensures examples match current APIs


Troubleshooting: Context7 Documentation Not Found

Scenario: Context7 cannot find documentation for a library you need.

Workaround:


Troubleshooting: Serena Indexing Failures

Scenario: Serena fails to index your project correctly.

Resolution:

Integration with Other Plugins

With Reflexion

With SDD (Spec-Driven Development)

With TDD

With Kaizen

With Feature Development Workflow

Last updated