Skip to content

Commit 0ea26d4

Browse files
committed
feat(mcp): add sse in event
1 parent 9b5c875 commit 0ea26d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/util.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ export async function makeDoitRequest<T>(
138138

139139
if (appendParams) {
140140
url = appendUrlParameters(url, customerContext);
141-
console.log("url", url);
142141
}
143142

144143
try {
@@ -155,6 +154,12 @@ export async function makeDoitRequest<T>(
155154
// add mcp params to the url
156155
url += `&mcp=true`;
157156

157+
if (!process.env.CUSTOMER_CONTEXT) {
158+
// request from the sse server
159+
url += `&sse=true`;
160+
}
161+
162+
console.log("url", url);
158163
const response = await fetch(url, requestOptions);
159164

160165
if (!response.ok) {

0 commit comments

Comments
 (0)