Skip to content

Conversation

@oguzc
Copy link
Owner

@oguzc oguzc commented Nov 18, 2025

Summary

Refactors the MCP server to use a clean, maintainable architecture with tool definitions embedded in TypeScript code instead of reading from .github/ folder.

Changes

New Structure

  • ✅ Created src/models/types.ts for TypeScript types
  • ✅ Created src/models/tools/ directory with tool definitions:
    • analyzer.ts - App analysis tools
    • planner.ts - Test planning tools
    • generator.ts - Code generation tools (infrastructure, page objects, test suite)
    • reference.ts - Reference documentation tools
    • index.ts - Exports all tools
  • ✅ Updated src/index.ts to use tool models
  • ✅ Added ARCHITECTURE.md documentation

Benefits

  1. No File I/O: All content embedded in code, faster startup
  2. Type Safe: Full TypeScript support with proper interfaces
  3. Easier Deployment: No dependency on .github/ folder
  4. Better Maintainability: Clean separation of concerns
  5. Simpler: ~60 lines vs ~200 lines in main server file

Version

Bumped version to 0.2.0

Testing

Tested locally with:

  • Tool listing works correctly
  • Tool execution returns proper content
  • No file I/O operations

Migration Notes

The .github/prompts/ folder can remain for reference but is no longer used by the server.

oguzc added 30 commits November 19, 2025 00:35
…ndencies, and update implementation steps for analyze tool.
…d update workflow/content for generate-test-plan tool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants