Skip to content

1.x Resources Management #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 30, 2025
Merged

1.x Resources Management #23

merged 15 commits into from
May 30, 2025

Conversation

klapaudius
Copy link
Owner

No description provided.

klapaudius added 15 commits May 27, 2025 21:10
Introduced a resource handling system including ResourceRepository, ResourceInterface, and example implementations. Updated service definitions, configuration, and tests to register and validate resources dynamically. Enhanced MCP server with resource management capabilities.
The filesystem resource provider configuration is now commented out in the KlpMcpServerExtensionTest. This change reflects that the resource provider is not currently needed for the test, improving clarity and maintaining focus on relevant configurations.
Fix test_load_sets_all_parameters_correctly. The test was mistakenly pushed with assertions for the next version which is not ready yet.
Added a "Usage" section in the README with an example for creating custom resources. Removed outdated and commented configuration code related to resources in `Configuration.php`.
Added a "Usage" section in the README with an example for creating custom resources. Removed outdated and commented configuration code related to resources in `Configuration.php`.
Introduced resource templates and handling in the server, added tests for resource listing, reading, and repository logic. Enhanced `VersionCheckTool` and updated descriptors while refining the resource handling logic and configuration options.
Implemented the `supportsResources` feature in `ServerCapabilities` to enable resource registration and exposure to clients. Updated related methods, serialization logic, and tests to account for resources configuration. Extended `MCPServer` to integrate resources functionality seamlessly.
Added PHPDoc comments to MCPServerTest for better documentation of test cases. Introduced comprehensive tests for McpDocumentationResource ensuring accurate URI handling, MIME type guessing, and resource management. Cleaned up unnecessary verbosity in KlpMcpServerExtensionTest comments for clarity.
The `guidelines.md` file was renamed to `development_guidelines.md` for improved clarity. All corresponding references in the documentation were updated to reflect this change. This ensures consistency and avoids potential broken links.
Cleaned up unnecessary imports to improve code readability and maintainability. This reduces potential confusion and ensures that only relevant dependencies are included.
Enhanced resource filtering logic to target .md files in Finder. Added detailed documentation on building resources and templates with comprehensive examples.
@klapaudius klapaudius merged commit 3ca2c9a into master May 30, 2025
10 checks passed
@klapaudius klapaudius changed the title 1.x Resource Management 1.x Resources Management May 30, 2025
@klapaudius klapaudius self-assigned this May 30, 2025
@klapaudius klapaudius added the enhancement New feature or request label May 30, 2025
@klapaudius klapaudius added this to the 1.1.0 milestone May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant