Skip to content

Conversation

@binaryk
Copy link
Collaborator

@binaryk binaryk commented Oct 26, 2025

Added

  • Improved the MCP Server for opening for permissions applications.
  • Token generation support docs

@what-the-diff
Copy link

what-the-diff bot commented Oct 26, 2025

PR Summary

New Modules and Classes Introduced:
  • BootMcpTools: This is a new class file added that handles the bootstrap of MCP tools. It discovers new tools and manages the operations of the existing tools. The class employs caching based on the application environment to optimize performance.
  • McpTools Manager: Another new class has been added, which manages the MCP tools discovered by the BootMcpTools class. It categorizes the tools by repository or other categories and handles their registration.
  • McpTools Facade: We've introduced a facade for managing and accessing MCP tools. It has capabilities to retrieve all tools, group them by categories, and check tool usage permissions.
Enhancements and Additions:
  • Improved Permission System: Enhanced documentation for application of a refined permission system utilizing token-based authorization has been implemented in the RestifyServer class.
  • Introduction of new Tool-Related Methods: New methods have been added to the RestifyServer class. getAllAvailableTools() fetches tools without considering permissions, while getAuthorizedTools() fetches authorized tools based on the user's unique token.
  • Modified Tool Discovery: The tool discovery approach has been redefined to leverage the benefits of the McpTools facade. It ensures the more efficient management and filtration of tools based on permissions.
  • Optimized Tool Registration: The registration methodology for wrapper tools has been refactored. It now utilizes the relevant tool classes directly, leading to the removal of redundant operations.
  • Service Provider Changes: Changes have been made to the RestifyApplicationServiceProvider to register the McpToolsManager as a singleton for dependency management.
Updated Test Environments:
  • Integration Test Updates: Existing tests in the WrapperToolsIntegrationTest.php file have been updated. These updates reflect changes in the error handling for operations untraceable in the permission context, aligning them with the now modified logic in the permission system.

@binaryk binaryk merged commit d9687d7 into 10.x Oct 27, 2025
14 of 17 checks passed
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