MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / onCustomMcpCreated

Function onCustomMcpCreated

packages/ui/src/views/tools/index.jsx:182–190  ·  view source on GitHub ↗
(newServerId)

Source from the content-addressed store, hash-verified

180 }
181
182 const onCustomMcpCreated = async (newServerId) => {
183 refreshCustomMcp(mcpCurrentPage, mcpPageLimit)
184 try {
185 const resp = await customMcpServersApi.getCustomMcpServer(newServerId)
186 setMcpDialogProps({ type: 'EDIT', data: resp.data ?? { id: newServerId } })
187 } catch {
188 setMcpDialogProps({ type: 'EDIT', data: { id: newServerId } })
189 }
190 }
191
192 const [search, setSearch] = useState('')
193 const onSearchChange = (event) => {

Callers

nothing calls this directly

Calls 1

refreshCustomMcpFunction · 0.85

Tested by

no test coverage detected