Skip to content

Latest commit

 

History

History
320 lines (275 loc) · 11.4 KB

File metadata and controls

320 lines (275 loc) · 11.4 KB
NameAboutLabelsAssignees
Request new MCP Server PrimitiveRequest a new tool or resource for the CodeQL Development MCP Serverfeature,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:

  1. 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
  2. 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)
  3. 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
  4. Validation Requirements:

    • Compile successfully with TypeScript
    • Pass all existing tests
    • Include unit tests for new functionality
    • Validate MCP protocol compliance
  5. PR Workflow:

    • Create PR using .github/PULL_REQUEST_TEMPLATE/mcp-server-primitive-create.md
    • Include comprehensive tests and documentation

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 Checklist (Auto-populated for LLM guidance)

These requirements will be automatically validated during implementation

🔄 Implementation Workflow (For LLM Processing)

Automated Implementation Steps:

  1. Context Analysis: Review server architecture and existing primitives
  2. Type Identification: Determine if tool, resource, or both
  3. Schema Design: Create Zod schemas for inputs/outputs
  4. Implementation: Code the primitive following existing patterns
  5. Registration: Add to appropriate registration function
  6. Testing: Create comprehensive unit tests
  7. Monitoring Integration: Ensure session tracking compatibility
  8. Documentation: Update README and add JSDoc comments
  9. 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
Code of Conduct

By submitting this issue, you agree to follow our Code of Conduct