Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
e979f69c
authored
Dec 08, 2025
by
heheer
Committed by
GitHub
Dec 08, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mcp sse params (#6056)
* mcp sse params * add console * fix * node version
parent
5aaf1231
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
packages/service/core/app/mcp.ts
+12
-3
projects/app/src/pageComponents/app/detail/WorkflowComponents/context/workflowInitContext.tsx
+3
-0
No files found.
packages/service/core/app/mcp.ts
View file @
e979f69c
...
@@ -41,14 +41,23 @@ export class MCPClient {
...
@@ -41,14 +41,23 @@ export class MCPClient {
},
},
eventSourceInit
:
{
eventSourceInit
:
{
fetch
:
(
url
,
init
)
=>
{
fetch
:
(
url
,
init
)
=>
{
const
headers
=
new
Headers
({
const
mergedHeaders
:
Record
<
string
,
string
>
=
{
...
init
?.
headers
,
...
this
.
headers
...
this
.
headers
};
if
(
init
?.
headers
)
{
if
(
init
.
headers
instanceof
Headers
)
{
init
.
headers
.
forEach
((
value
,
key
)
=>
{
mergedHeaders
[
key
]
=
value
;
});
});
}
else
if
(
typeof
init
.
headers
===
'object'
)
{
Object
.
assign
(
mergedHeaders
,
init
.
headers
);
}
}
return
fetch
(
url
,
{
return
fetch
(
url
,
{
...
init
,
...
init
,
headers
headers
:
mergedHeaders
});
});
}
}
}
}
...
...
projects/app/src/pageComponents/app/detail/WorkflowComponents/context/workflowInitContext.tsx
View file @
e979f69c
...
@@ -150,6 +150,9 @@ const WorkflowInitContextProvider = ({
...
@@ -150,6 +150,9 @@ const WorkflowInitContextProvider = ({
name
:
node
.
data
.
name
,
name
:
node
.
data
.
name
,
parentNodeId
:
node
.
data
.
parentNodeId
,
parentNodeId
:
node
.
data
.
parentNodeId
,
flowNodeType
:
node
.
data
.
flowNodeType
,
flowNodeType
:
node
.
data
.
flowNodeType
,
version
:
node
.
data
.
version
,
versionLabel
:
node
.
data
.
versionLabel
,
isLatestVersion
:
node
.
data
.
isLatestVersion
,
inputs
:
node
.
data
.
inputs
.
map
((
input
)
=>
{
inputs
:
node
.
data
.
inputs
.
map
((
input
)
=>
{
return
{
return
{
key
:
input
.
key
,
key
:
input
.
key
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment