Skip to content
mcp-guide logo

MCP Server Usage Guide

mcp-guide

Guide for selecting and using MCP servers (Git, GitHub, Context7, Knip, Memory, Sequential Thinking). Use when you need help choosing the right tool for version control, GitHub operations, documentation lookup, dead code detection, or knowledge persistence.

SKILL.md

Full skill instructions

MCP Server Usage Guide

This project has MCP servers configured in the workspace .mcp.json file. These tools form the AI Project Management Additions to assist with automated linting, state tracking, and development.

Available Servers

ServerPurposeWhen to Use
context7Library documentation lookupQuery up-to-date docs for libraries/​frameworks (React, Next.js, etc.)
githubGitHub API operationsPRs, issues, repos, commits, code search via GitHub API
knipDead code detectionFind unused exports, dependencies, and files in the codebase
spec-lintEnforce spec immutabilityAutomatically run to ensure no progress leaks into specs
next-devtoolsNext.js inspectionDebugging React components and Next.js state
memoryPersistent knowledge graphStore/​recall architectural decisions, patterns, known issues
gitGit operationsCommits, diffs, branches, history viewing
filesystemFile operationsRead/​write project files
sequentialthinkingStructured reasoningComplex debugging, architecture decisions
timeTimezone utilitiesTimestamps (rarely needed)

Git & GitHub Tool Selection Guide

Three tools available for version control and GitHub operations. Choose based on the task:

TaskUse ThisWhy
View status, diff, logGit MCPClean structured output
Create commitsGit MCPProper message formatting
List/​switch branchesGit MCPSimple operations
Push to remoteBash git pushMCP doesn't support push
Create PRsBash gh prReliable, no auth issues
Create/​update issuesBash gh issueReliable, no auth issues
Add issue commentsBash gh issueReliable, no auth issues
Search issuesBash gh issueReliable, no auth issues
Search code on GitHubBash gh searchReliable, no auth issues
List/​manage milestonesBash gh apiNo MCP milestone support
Complex git operationsBash gitRebase, cherry-pick, etc.

⚠️ IMPORTANT: The GitHub MCP server frequently has authentication failures ("Bad credentials" errors) even when tokens are configured. Always prefer the gh CLI via Bash for GitHub operations (issues, PRs, searches). The gh CLI is pre-authenticated and reliable.

Decision Flowchart

Is it a GitHub.com operation (issues, PRs, remote files)?
├─ Yes → Use Bash `gh` CLI (gh issue, gh pr, gh api)
│        └─ GitHub MCP is unreliable due to auth issues
└─ No → Is it a local git operation?
        ├─ Yes → Use Git MCP
        │        └─ Unless it's push/​pull/​fetch → Use `git` in Bash
        └─ No → Use Bash

Git MCP Server

Use for local repository operations:

mcp__git__git_status      # Working tree status
mcp__git__git_diff        # View changes (staged/​unstaged)
mcp__git__git_log         # Commit history
mcp__git__git_commit      # Create commits
mcp__git__git_branch      # List branches
mcp__git__git_checkout    # Switch branches
mcp__git__git_add         # Stage files

Limitations: Cannot push, pull, fetch, or perform remote operations.

GitHub MCP Server

⚠️ NOT RECOMMENDED: The GitHub MCP server frequently fails with "Bad credentials" authentication errors. Use the gh CLI via Bash instead for all GitHub operations.

Available tools (but prefer gh CLI):

mcp__github__create_issue           # Use: gh issue create
mcp__github__update_issue           # Use: gh issue edit
mcp__github__add_issue_comment      # Use: gh issue comment
mcp__github__list_issues            # Use: gh issue list
mcp__github__create_pull_request    # Use: gh pr create
mcp__github__get_pull_request       # Use: gh pr view
mcp__github__search_code            # Use: gh search code
mcp__github__get_file_contents      # Use: gh api repos/​OWNER/​REPO/​contents/​PATH

Limitations: Unreliable authentication, no milestone CRUD.

Bash git/​gh CLI (Preferred for GitHub)

The gh CLI is the most reliable way to interact with GitHub. Use it for all GitHub operations.

For detailed issue management (epics, sub-issues, milestones, GraphQL API), see the /​github-issues skill.

# Issues (preferred over GitHub MCP)
gh issue list --search "keyword"           # Search issues
gh issue list --state all --limit 30       # List all issues
gh issue view 123                          # View issue details
gh issue create --title "Title" --body "Body"
gh issue edit 123 --add-label "bug"
gh issue comment 123 --body "Comment text"

# Pull Requests (preferred over GitHub MCP)
gh pr list                                 # List open PRs
gh pr view 123                             # View PR details
gh pr create --title "Title" --body "Body"
gh pr merge 123 --squash

# Search (preferred over GitHub MCP)
gh search issues "keyword repo:owner/​repo"
gh search code "function_name repo:owner/​repo"

# API access for anything else
gh api repos/​OWNER/​REPO/​milestones
gh api repos/​OWNER/​REPO/​contents/​path/​to/​file

# Remote git operations (not in Git MCP)
git push origin branch-name
git pull origin main
git fetch --all

# Complex git operations
git rebase -i HEAD~3
git cherry-pick abc123
git stash push -m "message"

Context7 Usage

Use Context7 to fetch up-to-date documentation for libraries and frameworks:

# Get documentation for a library
resolve-library-id: "react"
get-library-docs: { libraryId: "/​react/​react", topic: "hooks" }

Best for:

  • Checking current API signatures
  • Understanding library-specific patterns
  • Verifying framework best practices

Knip Usage

Use Knip to detect dead code and unused dependencies:

# Run knip analysis
run_knip: { cwd: "/​path/​to/​project" }

# Get knip documentation
get_knip_docs: { topic: "configuration" }

Best for:

  • Finding unused exports before refactoring
  • Identifying dead code after feature removal
  • Cleaning up unused dependencies

Memory Server Usage

The memory server maintains project knowledge across sessions. Use it to:

Query existing knowledge:

mcp__memory__search_nodes("ruleset")     # Find ruleset architecture info
mcp__memory__search_nodes("technical")   # Find known technical debt
mcp__memory__open_nodes(["KeyFiles"])    # Get key file locations

Store new knowledge:

mcp__memory__create_entities([...])      # Add new architectural concepts
mcp__memory__add_observations([...])     # Add details to existing entities
mcp__memory__create_relations([...])     # Link concepts together

When to update memory:

  • After making significant architectural decisions
  • When discovering important patterns or gotchas
  • After resolving tricky bugs (document the solution)
  • When adding new major features

Sequential Thinking Usage

Use mcp__sequentialthinking__sequentialthinking for:

  • Debugging complex ruleset merge issues
  • Planning multi-step refactors
  • Working through character creation edge cases
  • Designing new edition support
  • Any problem requiring step-by-step reasoning with revision

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View