MCP Server
Prompts
Pre-built workflows for investigation and issue creation.
Prompts are pre-built multi-step workflows that guide AI agents through complex tasks. The Enhance MCP server provides two prompts.
investigate
A multi-step codebase investigation workflow. Searches code, knowledge base, and issues to understand how something works.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The question to investigate |
projectId | string | Yes | Enhance project ID |
repositoryId | string | No | Repository ID (discovered automatically if omitted) |
Workflow steps
- Search the knowledge base for relevant documentation
- Search the codebase for relevant source files
- Read key files identified in the search
- Check the codebase map to understand architecture
- Search for related issues or past work
- Synthesize findings into a structured answer
Output
The agent produces a structured response with:
- Summary of how it works
- Key files involved
- Relevant issues and documentation
- Gaps or concerns identified
Example
query: "How does JWT token refresh work?"
projectId: "proj_abc123"
create-issue-from-context
Creates a well-structured issue from code context. Searches the codebase first to understand scope and affected files.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Issue title |
description | string | Yes | Context for the issue |
projectId | string | Yes | Enhance project ID |
repositoryId | string | No | Repository ID (discovered automatically if omitted) |
Workflow steps
- Search for existing similar issues (avoid duplicates)
- Search the codebase for affected files
- Analyze scope using the codebase map
- Create the issue with full context including:
- Clear, actionable title
- Detailed description with what needs to change and why
- Affected files identified from search
- Appropriate priority, type, and tags
- Report the created issue and any related issues found
Example
title: "Add rate limiting to public API endpoints"
description: "Public API endpoints currently have no rate limiting, which exposes us to abuse"
projectId: "proj_abc123"