anythingmcp
anythingmcp copied to clipboard
refactor: add proper typing to MCP servers controller
- 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
👋 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.tstest 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.
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.