Client for the Glitch MCP paid facade (/mcp/v1).

Authenticate with a Glitch user JWT or a title-scoped MCP token. The facade enforces subscription, title permissions, scope, and approval guardrails on every call; this client only forwards requests.

Constructors

Methods

  • Answer a guidance request and resume the server-side workflow when possible.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • guidance_id: string
    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Approve a reviewable action. Execution remains guarded server-side.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • action_id: string
    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List downloadable files and hosted report artifacts for a run.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • run_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Health/auth probe. Returns authenticated=false (200) when no credential is set.

    Type Parameters

    • T

    Parameters

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Check subscription, trial, plan, and credit state for a title.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Create a revocable title-scoped MCP token (user JWT only).

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Get instructions for uploading a file (points at uploadFile below).

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Execute an approved action. Public/paid/creator-facing work stays guarded.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • action_id: string
    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Fetch the human-friendly final or partial report for a run.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • run_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List proposed/guidance/approval/executed actions for a title.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List open or answered guidance requests for a title or run.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List titles visible to the current user token or title-scoped MCP token.

    Type Parameters

    • T

    Parameters

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List MCP title tokens (user JWT only).

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Reject a proposed or approval-needed action.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • action_id: string
    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Revoke a title-scoped MCP token (user JWT only).

    Type Parameters

    • T

    Parameters

    • title_id: string
    • token_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List user-visible timeline events for a run.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • run_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Server-Sent Events URL for a run's live event stream.

    Returns the absolute URL to open with an EventSource/fetch reader; the endpoint emits status, run_event, and a terminal settled/timeout event.

    Parameters

    • title_id: string
    • run_id: string
    • Optional params: Record<string, any>

    Returns string

  • Start a paid Glitch Agent run for a title.

    Type Parameters

    • T

    Parameters

    Returns AxiosPromise<default<T>>

  • Fetch safe, subscription-gated workspace context for a title.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Upload a file (image, video, or document) to a title or run as multipart/form-data. The facade re-checks the title scope, subscription, and allowed mime types.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • file: Blob | File
    • Optional data: object
    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

  • Fetch a durable run with status, actions, guidance, events, files, and report.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • run_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

Generated using TypeDoc