MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / get

Method get

apps/tools/views/tool.py:326–337  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str)

Source from the content-addressed store, hash-verified

324 )
325 @log(menu='Tool', operate='Get tool list')
326 def get(self, request: Request, workspace_id: str):
327 return result.success(ToolSerializer.Query(
328 data={
329 'workspace_id': workspace_id,
330 'folder_id': request.query_params.get('folder_id'),
331 'name': request.query_params.get('name'),
332 'scope': request.query_params.get('scope'),
333 'tool_type': request.query_params.get('tool_type'),
334 'user_id': request.user.id,
335 'create_user': request.query_params.get('create_user'),
336 }
337 ).get_tools())
338
339 class Import(APIView):
340 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 3

successMethod · 0.45
get_toolsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected