copilot-mcp-server
Direct access to GitHub Copilot MCP server tools for AI-powered development assistance
What this skill does
# Copilot MCP Server
When to use this skill:
- When you need direct access to Copilot AI models for specific tasks
- When you want to use Copilot's specialized tools (review, debug, explain, etc.)
- When you need AI assistance outside of the copilot-flow workflow
## Available MCP Tools
### Core Tools
#### ask-copilot
General-purpose AI assistant for coding help, debugging, and architecture design.
```javascript
mcp__plugin__copilot__ask-copilot(
prompt="string", // Required: The question or task for Copilot
context="string", // Optional: Additional context
model="string", // Optional: Specific model to use (default: claude-sonnet-4.5)
allowAllTools=true/false // Optional: Allow Copilot to use all available tools
)
```
#### copilot-review
Professional code review with focus on specific areas.
```javascript
mcp__plugin__copilot__copilot-review(
code="string", // Required: Code to review
focusAreas=["security", "performance", "maintainability", "best-practices"] // Optional: Specific areas to focus
)
```
#### copilot-explain
Get detailed explanations of code snippets.
```javascript
mcp__plugin__copilot__copilot-explain(
code="string", // Required: Code to explain
model="string" // Optional: Model to use
)
```
#### copilot-debug
Debug errors in code with context-aware analysis.
```javascript
mcp__plugin__copilot__copilot-debug(
code="string", // Required: Code with error
error="string", // Required: Error message
context="string" // Optional: Additional context
)
```
#### copilot-refactor
Get suggestions for code refactoring and improvements.
```javascript
mcp__plugin__copilot__copilot-refactor(
code="string", // Required: Code to refactor
goal="string" // Required: Refactoring goal (e.g., "improve performance")
)
```
#### copilot-test-generate
Generate unit tests for existing code.
```javascript
mcp__plugin__copilot__copilot-test-generate(
code="string", // Required: Code to test
framework="string" // Optional: Testing framework (e.g., jest, pytest, mocha)
)
```
#### copilot-suggest
Get CLI command suggestions for specific tasks.
```javascript
mcp__plugin__copilot__copilot-suggest(
task="string", // Required: Task description
model="string" // Optional: Model to use
)
```
### Session Management
#### copilot-session-start
Start a new conversation session with context tracking.
```javascript
mcp__plugin__copilot__copilot-session_start()
```
#### copilot-session-history
Retrieve conversation history for continuity.
```javascript
mcp__plugin__copilot__copilot-session_history(
sessionId="string" // Optional: Specific session ID
)
```
## Model Selection
Choose from available models based on task complexity:
### claude-sonnet-4.5 (default)
- Best for: System design, architecture decisions, code review, performance optimization
- Balance of capability and speed
### claude-opus-4.5
- Best for: Complex problems requiring strict execution
- Highest reasoning capability
### claude-haiku-4.5
- Best for: Quick syntax queries, simple logic questions, API usage
- Fastest response
### gemini-3-pro-preview
- Best for: Flutter, Angular, GCP, Firebase, Google Cloud development
- Google ecosystem specialization
### gpt-5-mini (unlimited usage)
- Best for: Concept explanations, general technical questions, documentation queries
- No usage limits for Pro+ subscribers
### gpt-5.1-codex / gpt-5.1-codex-max
- Best for: Complex algorithms, system refactoring, large feature development
- Advanced code generation
### gpt-5.2
- Best for: Complex reasoning with large context
- Highest comprehension
## Usage Examples
### Code Implementation
```javascript
mcp__plugin__copilot__ask-copilot(
prompt="Implement a REST API endpoint for user authentication with JWT",
model="claude-sonnet-4.5",
allowAllTools=true
)
```
### Security Review
```javascript
mcp__plugin__copilot__copilot_review(
code=`function login(username, password) {
const query = \`SELECT * FROM users WHERE username = '\${username}' AND password = '\${password}'\`;
return db.query(query);
}`,
focusAreas=["security", "sql-injection", "authentication"]
)
```
### Error Debugging
```javascript
mcp__plugin__copilot__copilot_debug(
code="const result = await fetchData().json;",
error="TypeError: fetchData(...).json is not a function",
context="Trying to parse JSON response from API"
)
```
### Test Generation
```javascript
mcp__plugin__copilot__copilot_test_generate(
code=`function isPrime(n) {
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) {
if (n % i === 0) return false;
}
return true;
}`,
framework="jest"
)
```
## Best Practices
### Do
- Be specific in your prompts
- Provide context when available
- Choose appropriate model for task complexity
- Use session management for related queries
- Focus review on specific areas
### Don't
- Use overly broad prompts like "write code"
- Overuse powerful models for simple tasks
- Pass empty parameters
- Ask for review on all areas without focus
- Mix unrelated queries in one session
## Error Handling
If MCP server is unavailable:
1. Check GitHub Copilot CLI authentication
2. Verify MCP server configuration
3. Restart Claude Code or your MCP client
## Integration Notes
- This skill provides direct tool access
- For structured workflow, use copilot-flow-integration skill
- All tools require active GitHub Copilot subscription
- Usage counts towards Copilot API limits
## Keywords
copilot, mcp, ai, code review, debugging, testing, refactoring, github copilot, claude, gpt, geminiRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.