mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: add mcp server
This commit is contained in:
@ -21,6 +21,7 @@ class InvokeFrom(Enum):
|
||||
WEB_APP = "web-app"
|
||||
EXPLORE = "explore"
|
||||
DEBUGGER = "debugger"
|
||||
MCP_SERVER = "mcp-server"
|
||||
|
||||
@classmethod
|
||||
def value_of(cls, value: str):
|
||||
@ -49,6 +50,8 @@ class InvokeFrom(Enum):
|
||||
return "explore_app"
|
||||
elif self == InvokeFrom.SERVICE_API:
|
||||
return "api"
|
||||
elif self == InvokeFrom.MCP_SERVER:
|
||||
return "mcp_server"
|
||||
|
||||
return "dev"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user