-
Notifications
You must be signed in to change notification settings - Fork 51
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: php-mcp/server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: php-mcp/server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 7 commits
- 49 files changed
- 3 contributors
Commits on May 1, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c99dcd1 - Browse repository at this point
Copy the full SHA c99dcd1View commit details -
Merge pull request #1 from JacquesvanWyk/patch-1
Update README.md
Configuration menu - View commit details
-
Copy full SHA for 1fa0246 - Browse repository at this point
Copy the full SHA 1fa0246View commit details -
feat(core): Add manual registration and invokable class discovery
Implements several enhancements to the MCP server: - Adds manual registration methods to the `Server` class (`withTool`, `withResource`, `withPrompt`, `withResourceTemplate`), allowing programmatic definition of MCP elements alongside attribute discovery. Supports array `[Class::class, 'method']` and invokable class string handlers. - Enables the `Discoverer` to find `#[Mcp*]` attributes placed directly on invokable classes (classes with a public `__invoke` method). Attributes (`McpTool`, `McpResource`, etc.) updated accordingly. - Refactors dependency injection within the `Server`. Core components like `Processor`, `Discoverer`, `Registry`, and `TransportState` now resolve dependencies (Logger, Cache, Config) Just-In-Time from the PSR-11 container. - Clarifies behavior: `withLogger/Cache/Config` methods primarily affect the default `BasicContainer`. When a custom container is used via `withContainer`, these services MUST be registered directly in the custom container. - Adds configuration options to control discovery paths (`withBasePath`, `withScanDirectories`, `withExcludeDirectories`). - Updates `README.md` extensively to document these new features and the updated DI behavior. - Adds comprehensive tests for manual registration and invokable class discovery, and updates existing tests to reflect the DI refactoring. BREAKING CHANGE: The dependency injection mechanism within the `Server` has been refactored. Components now resolve PSR-3/11/16 dependencies JIT from the container. Users providing a custom container via `withContainer()` MUST ensure `LoggerInterface`, `CacheInterface`, and `ConfigurationRepositoryInterface` are registered. The behavior of `withLogger()`, `withCache()`, and `withConfig()` is altered when a custom container is present; configuration should happen directly within the custom container itself. TransportHandler constructors now primarily accept the `Server` instance.
Configuration menu - View commit details
-
Copy full SHA for ac4940f - Browse repository at this point
Copy the full SHA ac4940fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23a038e - Browse repository at this point
Copy the full SHA 23a038eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42b93e7 - Browse repository at this point
Copy the full SHA 42b93e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05b9258 - Browse repository at this point
Copy the full SHA 05b9258View commit details -
Merge pull request #2 from php-mcp/feature/enhanced-element-registration
feat: Add Manual Registration, Invokable Discovery, and Refactor DI
Configuration menu - View commit details
-
Copy full SHA for 2ff0f7d - Browse repository at this point
Copy the full SHA 2ff0f7dView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.0.0...1.1.0