You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add resource handlers for documentation in MCPServerFactory
- Implemented `register_resource_handlers` method to register handlers for listing and reading resources with documentation.
- Updated `MCPServerFactory` to include resource handlers in server initialization.
- Enhanced error handling in `ExecutionRouter` for better logging and context management.
- Introduced metrics endpoint in `TransportManager` for Prometheus compatibility.
- Updated tests to cover new resource handling functionality and metrics endpoint.
- Refactored existing tests for clarity and consistency, ensuring proper coverage for new features.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
+
-**metrics_collector parameter**: `serve(metrics_collector=...)` accepts a `MetricsCollector` instance to enable Prometheus metrics export.
13
+
-**`/metrics` Prometheus endpoint**: HTTP-based transports (`streamable-http`, `sse`) now serve a `/metrics` route returning Prometheus text format when a `metrics_collector` is provided. Returns 404 when no collector is configured.
12
14
-**trace_id passback**: Every successful response now includes a second content item with `_trace_id` metadata for request tracing.
13
15
-**validate_inputs**: `serve(validate_inputs=True)` enables pre-execution input validation via `Executor.validate()`. Invalid inputs are rejected before module execution.
14
16
-**Always-on Context**: `Context` is now always created for every tool call, enabling trace_id generation even without MCP callbacks.
0 commit comments