tiny-http-mcp-server 0.1.56 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/composition.json
CHANGED
|
@@ -58,6 +58,10 @@ Legacy SSE mode opens a GET stream and posts messages to the endpoint announced
|
|
|
58
58
|
by the server. Announced endpoints must remain on the original origin without
|
|
59
59
|
embedded credentials or fragments; endpoint changes close the connection.
|
|
60
60
|
Both transports accept the same headers, OAuth provider and response limits.
|
|
61
|
+
`maxResponseBytes` bounds a complete JSON body or each SSE event (default 16 MiB).
|
|
62
|
+
Receive streams may carry many bounded events and keepalive comments; the limit
|
|
63
|
+
does not cap their lifetime bytes. Use request deadlines and cancellation to
|
|
64
|
+
bound pending operations.
|
|
61
65
|
HTTP failures expose `HttpTransportError.status` and `.method`, so callers can
|
|
62
66
|
make transport decisions without parsing error messages. Legacy HTTP/SSE
|
|
63
67
|
`connect()` also waits for the initialized notification POST to complete before
|
|
@@ -708,6 +708,7 @@ interface HttpTransportOptions {
|
|
|
708
708
|
oauth?: OAuthClientProviderOptions;
|
|
709
709
|
oauthDiscoveryCache?: OAuthDiscoveryCache;
|
|
710
710
|
onWarning?: (message: string) => void;
|
|
711
|
+
/** Maximum JSON response bytes or individual SSE event bytes; not a stream lifetime cap. */
|
|
711
712
|
maxResponseBytes?: number;
|
|
712
713
|
}
|
|
713
714
|
declare class StdioTransport implements McpTransport {
|