Skip to main content
Connectors bring external resources into a workspace. Plugins add scene elements and behavior to a project. An app that calls Pascal uses the existing API or MCP authentication; an outgoing connector does not authorize incoming clients.

What users see

Connecting an account, private connector chats, importing into Files and the per-service limits are covered in the Connectors guide. This page covers the boundaries behind them. Built-in file connections grant read access with no automatic imports. Custom MCP connections can offer external writes after explicit tool approval. Current grants and privacy are checked before source context reaches a model. Google Drive always uses the acting person’s own account and Google permissions; other providers follow the custodian’s explicit workspace sharing. Recognizing a link never establishes read permission, and link metadata lookups read no contents. Imports retain source identity, observed revision, representation, checksum, attribution and rights, an operation receipt and the verified original link. Chat imports also record the authenticated actor and the available turn provenance. Per-file intake is limited to 20 MiB; text extraction, result sizes and pagination are separately bounded. Preserve truncation and continuation indicators rather than treating one page as a complete inventory.

Connect an app to Pascal

For clients that send data to Pascal or receive project files, use API & agents, the Pascal API, or MCP. Use the supported file lifecycle for uploads/downloads. Account credentials stay encrypted server-side and never enter the browser, Files, prompts or frontend code.

Build a provider adapter

For an existing MCP server, you can use the shared connector runtime without writing a provider adapter:
  1. Send POST /api/workspace/connectors with { workspaceId, command }, authenticated with a human browser session or a full-authority human-script key.
  2. Use command: { action: 'connectMcp', configuration: { endpoint, authentication } }. Authentication is { type: 'none' } or { type: 'token', token: '...' }.
  3. Inspect { action: 'mcpDetails', connectionId }. Review each tool’s description and input/output schema, then use { action: 'approveMcp', configuration: { connectionId, generation, tools: [{ name, schemaHash, allowAgents }] } }.
  4. Share the connection with the workspace before organization project agents use it. Discover with list_connector_actions; invoke through call_connector_tool with a stable idempotency key. The read-only action path refuses custom tools.
Use refreshMcp with connectionId and generation to rediscover tools. Changed schemas lose approval. Reconnection also requires review; changing the endpoint or credential creates a new private connection. A server’s read-only hints are untrusted. Only explicitly approved tools can run, with a separate grant for agents. Custom servers support public HTTPS Streamable HTTP on port 443, with no redirects, query strings or URL credentials. Generic OAuth, STDIO, private networks, sampling and elicitation are not enabled. Discovery calls no tools. Results and catalogs are bounded. Completed custom calls retain permission-bound receipts; retries never execute them again. An operation_outcome_unknown receipt requires checking the external service before intentionally submitting a new key. See Project automations for incoming webhooks, durable project runs and signed completion callbacks. A webhook does not have to belong to a connection.

Native provider adapters

Native adapters are reviewed code. For your own remote server, use the custom MCP path below. The registry describes supported operations; the shared runtime owns identity, workspace scope, privacy, grants and provenance. All five native file adapters use server-side OAuth. A managed authentication service can sit behind that boundary without replacing Pascal’s authority checks.
  1. Define supported resources and versioned operations, effects and result types.
  2. Bind authorization to the initiating member, workspace, provider and connection. Verify the upstream subject; reconnect and refresh cannot revive revoked access or replace an identity.
  3. Use fixed endpoints and validated provider URLs. Bound pagination, bytes and time; verify identity/revision around reads/imports. Preserve source links, attribution and rights without inferring a license.
  4. Keep provider calls outside database transactions. Recheck identity, privacy, grants and generation before exposing or committing results. Retained files use canonical private intake.
  5. Test private/shared isolation, multiple accounts, provider credential separation, departed members, revoked/reordered requests, retries and provenance. Obtain representative real-account acceptance separately.

Operator credentials and callbacks

Registrations belong to Pascal’s operator. End users authorize existing accounts; they do not create developer applications. Client secrets and tokens are server-only. Register exact local callbacks http://localhost:3100/api/workspace/connectors/{providerId}/callback and production callbacks ${BASE_URL}/api/workspace/connectors/{providerId}/callback, replacing provider IDs and origin literally. BASE_URL means Pascal’s trusted origin, normally https://editor.pascal.app, not a new environment variable. Follow the Google scope guidance, Microsoft registration guide, Dropbox OAuth guide, Pinterest access tiers and GitHub App token guide. Pinterest Trial permits reading Pins and boards with daily app-level rate limits; Pinterest recommends Standard access for production use. Public availability requires applicable provider approvals and Pascal’s release checks. Production Drive authorization admits only exact Pascal user IDs in server-only CONNECTOR_GOOGLE_DRIVE_ALLOWED_USER_IDS (comma-separated, closed when empty). Branding approval does not approve Drive scopes. Pinterest’s separate non-business data restriction can also refuse individual Pins or boards from a connected business account. Standard access alone does not remove that restriction.

Shared client

The transport-injected client is available in the monorepo as @pascal/api/connectors:
Search with capabilityId: 'search' and a query, then read a returned resource ID. Pass nextPageToken unchanged as pageToken to continue. Source links are provider-validated; arbitrary URLs are not fetch targets. Results contain bounded context, source identity and revision. Reuse the same idempotency key after an uncertain response; changed inputs need a new key. Native live reads recheck provider access instead of replaying cached contents; custom MCP calls replay their original receipt. Inspect receipt status and result: HTTP 200 alone is not operation success. Read permissions do not grant scene edits, provider writes or unrestricted delegation.