mcp-server-primitive-create.yml
mcp-server-primitive-create.yml
| Name | About | Labels | Assignees |
|---|---|---|---|
| Request new MCP Server Primitive | Request a new tool or resource for the CodeQL Development MCP Server | feature,enhancement,mcp-server |
📝 Created from issue template:
.github/ISSUE_TEMPLATE/mcp-server-primitive-create.yml
Thanks for taking the time to request a new MCP server primitive!
MCP server primitives are the fundamental building blocks of the Model Context Protocol server - tools and resources that help AI assistants work effectively with CodeQL development. This template helps you request new primitives that will enhance the server's capabilities.
🤖 For Agentic LLMs (GitHub Copilot)
This issue template provides structured information for automated MCP primitive development. When processing this issue:
-
Repository Context: Begin by reading these critical reference files:
- Repository Structure:
README.md- Overview of MCP server architecture and capabilities - Server Implementation:
server/src/codeql-development-mcp-server.ts- Main server implementation - Existing Tools:
server/src/tools/codeql-tools.ts- Current tool implementations - Existing Resources:
server/src/tools/codeql-resources.ts- Current resource implementations
- Repository Structure:
-
Primitive Type: Identify whether this is a tool (interactive function) or resource (static content):
- Tools: Interactive functions that perform operations (validate, generate, transform)
- Resources: Static content that provides information (guides, templates, references)
-
Implementation Requirements:
- Follow existing patterns in the server codebase
- Implement proper error handling and logging
- Include TypeScript types and Zod schema validation
- Add comprehensive JSDoc documentation
-
Validation Requirements:
- Compile successfully with TypeScript
- Pass all existing tests
- Include unit tests for new functionality
- Validate MCP protocol compliance
-
PR Workflow:
- Create PR using
.github/PULL_REQUEST_TEMPLATE/mcp-server-primitive-create.md - Include comprehensive tests and documentation
- Create PR using
What type of MCP primitive are you requesting?
Which area of CodeQL development does this primitive address?
Please provide a clear description of the primitive you want to create
Suggested name for the tool or resource (e.g., 'optimize_query_performance', 'advanced_patterns_guide')
📋 Reference Materials (Provide any/all that are available)
The following reference materials help define what the new primitive should do or provide. You don't need to provide all of these - even one or two can drive effective implementation.
Example CodeQL query that this primitive should work with or generate
Documentation or help content that describes CodeQL concepts this primitive should address
Test code files or scenarios that should be used to validate this primitive
What the primitive should return or produce when given the test inputs
Specific scenario where an AI assistant would use this primitive
🔗 Additional Context (Optional)
Provide any additional context that might help with implementation.
Links to related documentation, examples, or specifications
How urgent is this new primitive?
How complex do you think this primitive would be to implement?
🧪 Implementation Requirements (For LLM Implementation)
The following requirements must be met for MCP primitive implementation:
🔄 Implementation Workflow (For LLM Processing)
Automated Implementation Steps:
- Context Analysis: Review server architecture and existing primitives
- Type Identification: Determine if tool, resource, or both
- Schema Design: Create Zod schemas for inputs/outputs
- Implementation: Code the primitive following existing patterns
- Registration: Add to appropriate registration function
- Testing: Create comprehensive unit tests
- Monitoring Integration: Ensure session tracking compatibility
- Documentation: Update README and add JSDoc comments
- Integration: Ensure proper server integration
Quality Gates:
- ✅ TypeScript compilation without errors
- ✅ All unit tests pass
- ✅ MCP protocol compliance validated
- ✅ Error handling comprehensive
- ✅ Session tracking compatibility
- ✅ Documentation complete
PR Decision Logic:
- Ready for Review: All tests pass, monitoring integration verified, and documentation complete
- Draft PR: Implementation done but needs refinement
Monitoring & Reporting Integration:
- New tools automatically participate in session tracking when sessionId parameter is provided
- Quality assessment includes new tool usage patterns
- Test-driven development workflow captures tool effectiveness metrics