Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mcpgateway/services/tool_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@ async def register_tool(
import_batch_id=import_batch_id,
federation_source=federation_source,
version=1,
# Team scoping fields
team_id=team_id,
owner_email=owner_email or created_by,
visibility=visibility,
# Team scoping fields - use schema values if provided, otherwise fallback to parameters
team_id=getattr(tool, "team_id", None) or team_id,
owner_email=getattr(tool, "owner_email", None) or owner_email or created_by,
visibility=getattr(tool, "visibility", None) or visibility,
# passthrough REST tools fields
base_url=tool.base_url if tool.integration_type == "REST" else None,
path_template=tool.path_template if tool.integration_type == "REST" else None,
Expand Down
Loading