MCPcopy Create free account
hub / github.com/compozy/agh / resolveRequiredWorkspaceID

Method resolveRequiredWorkspaceID

internal/extension/host_api.go:2090–2099  ·  view source on GitHub ↗
(ctx context.Context, rawWorkspace string)

Source from the content-addressed store, hash-verified

2088}
2089
2090func (h *HostAPIHandler) resolveRequiredWorkspaceID(ctx context.Context, rawWorkspace string) (string, error) {
2091 workspaceID, err := h.resolveWorkspaceID(ctx, rawWorkspace)
2092 if err != nil {
2093 return "", err
2094 }
2095 if strings.TrimSpace(workspaceID) == "" {
2096 return "", invalidParamsRPCError(errors.New("workspace_id is required"))
2097 }
2098 return strings.TrimSpace(workspaceID), nil
2099}
2100
2101func (h *HostAPIHandler) requireHostAPISessionWorkspace(
2102 ctx context.Context,

Callers 2

Calls 2

resolveWorkspaceIDMethod · 0.95
invalidParamsRPCErrorFunction · 0.85

Tested by

no test coverage detected