mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-01 05:00:13 +00:00
minor update
This commit is contained in:
parent
3a9fbc2b11
commit
640a6c692d
2 changed files with 10 additions and 5 deletions
|
|
@ -191,7 +191,8 @@ async def import_mcp(
|
|||
env=data.env,
|
||||
server_url=None,
|
||||
)
|
||||
break
|
||||
mcp_user.save()
|
||||
return {"message": "Local MCP servers imported successfully", "count": len(mcp_data)}
|
||||
elif mcp_type == McpImportType.Remote:
|
||||
is_valid, res = validate_mcp_remote_servers(mcp_data)
|
||||
if not is_valid:
|
||||
|
|
@ -209,5 +210,5 @@ async def import_mcp(
|
|||
mcp_name=data.server_name,
|
||||
server_url=data.server_url,
|
||||
)
|
||||
mcp_user.save()
|
||||
return mcp_user
|
||||
mcp_user.save()
|
||||
return mcp_user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue