Merge branch 'main' into handle-empty-json-fields

This commit is contained in:
Ola Hungerford
2025-03-16 15:56:24 -07:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ import {
ListRootsRequestSchema,
ProgressNotificationSchema,
ResourceUpdatedNotificationSchema,
LoggingMessageNotificationSchema,
Request,
Result,
ServerCapabilities,
@@ -258,6 +259,11 @@ export function useConnection({
ResourceUpdatedNotificationSchema,
onNotification,
);
client.setNotificationHandler(
LoggingMessageNotificationSchema,
onNotification,
);
}
if (onStdErrNotification) {

View File

@@ -66,7 +66,9 @@ const createTransport = async (req: express.Request) => {
return transport;
} else if (transportType === "sse") {
const url = query.url as string;
const headers: HeadersInit = {};
const headers: HeadersInit = {
Accept: "text/event-stream",
};
for (const key of SSE_HEADERS_PASSTHROUGH) {
if (req.headers[key] === undefined) {
continue;