Skip to content

Add missing "SessionIdGeneratorInterface" interface#77

Open
0xsirus wants to merge 1 commit intophp-mcp:mainfrom
0xsirus:fix_interface
Open

Add missing "SessionIdGeneratorInterface" interface#77
0xsirus wants to merge 1 commit intophp-mcp:mainfrom
0xsirus:fix_interface

Conversation

@0xsirus
Copy link

@0xsirus 0xsirus commented Feb 4, 2026

This PR adds a missing interface which makes server tool discovery to fail if the tool name comes after Defaults/DefaultUuidSessionIdGenerator.php. If logging is enabled, the related error will be:

[error] Error during file finding process for MCP discovery {"exception":"Interface \"PhpMcp\\Server\\Contracts\\SessionIdGeneratorInterface\" not found"

This makes the discovery to ignore the next tools and abort prematurely.

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.

1 participant