Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

491 B
Raw Blame
import { useMutation } from "@tanstack/react-query";
import { submitMcpAuthorizationDecision } from "@/fetchers/mcp/submit-authorization-decision";
import { toast } from "@/lib/toast";

export function useMcpAuthorizationDecision() {
  return useMutation({
    mutationFn: ({
      requestId,
      approved,
    }: {
      requestId: string;
      approved: boolean;
    }) => submitMcpAuthorizationDecision(requestId, approved),
    onError: (error) => toast.error(error.message),
  });
}