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 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"


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

Last updated