anythingmcp icon indicating copy to clipboard operation
anythingmcp copied to clipboard

refactor: add proper typing to MCP servers controller

Open iVladyuser opened this issue 6 months ago • 1 comments

  • Replace any types with AuthRequest interface for Express Request
  • Add McpServer interface for type-safe server object handling
  • Add explicit return type annotations to helper methods
  • Improve IDE autocomplete and type checking for request/server objects

Summary

Changes

-

-

Type

  • [ ] Bug fix
  • [ ] New feature
  • [ ] Documentation
  • [ ] Refactoring
  • [ ] Performance improvement
  • [ ] Other (describe below)

Testing

  • [ ] Added/updated unit tests
  • [ ] Tested manually (describe steps below)
  • [ ] No tests needed (explain why)

Checklist

  • [ ] My code follows the existing code style
  • [ ] I have tested my changes locally
  • [ ] I have updated documentation (if applicable)
  • [ ] All existing tests pass (npm test)
  • [ ] This PR has a descriptive title

Related Issues

iVladyuser avatar May 19 '26 15:05 iVladyuser

👋 Welcome, @iVladyuser, and thanks for opening your first PR on AnythingMCP!

A few quick pointers:

  • Make sure CI is green before requesting review (Backend, Frontend, Playwright, CodeQL, Trivy).
  • If this is a new adapter, the parametrised catalog.spec.ts test will validate it automatically.
  • Sign off your commits if you can — it's not blocking, just nice to have.

Someone from the core team will look at this within ~48h. If you don't hear back, please ping us in Discussions / Q&A.

⭐ While you wait — if you find AnythingMCP useful, a star helps others discover it.

github-actions[bot] avatar May 19 '26 15:05 github-actions[bot]

This PR has been quiet for 30 days. If you're still working on it, leave a comment so we don't auto-close it in 14 days.

github-actions[bot] avatar Jun 19 '26 10:06 github-actions[bot]