MCPcopy
hub / github.com/dataelement/Clawith / test_category_config

Function test_category_config

backend/app/api/tools.py:1011–1025  ·  view source on GitHub ↗

Test connectivity for a tool category.

(
    agent_id: uuid.UUID,
    category: str,
    current_user: User = Depends(get_current_user),
    db: AsyncSession = Depends(get_db),
)

Source from the content-addressed store, hash-verified

1009
1010@router.post("/agents/{agent_id}/category-config/{category}/test")
1011async def test_category_config(
1012 agent_id: uuid.UUID,
1013 category: str,
1014 current_user: User = Depends(get_current_user),
1015 db: AsyncSession = Depends(get_db),
1016):
1017 """Test connectivity for a tool category."""
1018 if category == "atlassian":
1019 from app.api.atlassian import test_atlassian_channel
1020 return await test_atlassian_channel(agent_id, current_user, db)
1021 elif category == "agentbay":
1022 from app.services.agentbay_client import test_agentbay_channel
1023 return await test_agentbay_channel(agent_id, current_user, db)
1024
1025 return {"ok": True, "message": f"Settings for {category} saved."}

Callers

nothing calls this directly

Calls 2

test_atlassian_channelFunction · 0.90
test_agentbay_channelFunction · 0.90

Tested by

no test coverage detected