MCPcopy
hub / github.com/1Panel-dev/MaxKB / post

Method post

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

Source from the content-addressed store, hash-verified

59 get_operation_object=lambda r, k: r.data.get('name'),
60 )
61 def post(self, request: Request, workspace_id: str):
62 return result.success(ToolSerializer.Create(
63 data={'user_id': request.user.id, 'workspace_id': workspace_id}
64 ).insert({**request.data, 'scope': ToolScope.WORKSPACE}))
65
66 @extend_schema(
67 methods=['GET'],

Callers

nothing calls this directly

Calls 2

successMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected