chore: add ping utility, modify default command in dockerfile, update defaults for http_host #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to improve the HTTP and SSE transport implementations, align the ping endpoint with JSON-RPC 2.0 standards, and enhance configuration flexibility. The most significant updates include modifying the ping endpoint schemas and handlers, updating the default HTTP host configuration, and dynamically setting server URLs based on environment variables.
Transport Updates
pingHandler
to align with JSON-RPC 2.0 standards by introducingpingRequestSchema
and updatingpingResponseSchema
. Removed the GET/ping
endpoint and standardized the POST/ping
endpoint for both HTTP and SSE transports. [1] [2] [3]Configuration Enhancements
HTTP_HOST
from"localhost"
to"0.0.0.0"
to allow binding to all interfaces. Updated the Swagger server URL to dynamically useHTTP_HOST
andHTTP_PORT
from environment variables. [1] [2]Miscellaneous Improvements
--transport http
for production environments.