This commit is contained in:
1 parent
f5b45af30a
commit
7f47841fdc
4 files changed
+9
-19
No files matched your search
@@ -1,4 +1,4 @@
|
||||
"""User submission controller for MCP/Skill/Plugin marketplace."""
|
||||
"""User submission controller for MCP marketplace."""
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
@@ -141,7 +141,7 @@ def _publish_mcp_service(db: Session, sub: Submission) -> str:
|
||||
return service.id
|
||||
|
||||
|
||||
@router.post("/submission", summary="User submit MCP/Skill/Plugin")
|
||||
@router.post("/submission", summary="User submit MCP")
|
||||
async def create_submission(
|
||||
request: Request,
|
||||
type: str = Form(...),
|
||||
@@ -163,7 +163,7 @@ async def create_submission(
|
||||
if not user_id:
|
||||
return ResponseUtils.error(error_msg=error_msg.NO_PERMISSION)
|
||||
|
||||
if type not in ("mcp", "skill", "plugin"):
|
||||
if type != "mcp":
|
||||
return ResponseUtils.error(error_msg=error_msg.INVALID_PARAMETER)
|
||||
|
||||
# MCP submissions must declare where the service lives so that approving
|
||||
|
||||
Reference in new issue
Block a user