On this page

provision-connector

Connect a credential-free connector to this project, which creates one skill per action it supports — the only way to get skills into a new project, and the first step before create-process-flow (agent.skills[] must reference real ids from list-skills). Idempotent: connecting one that already exists returns the existing connector and creates nothing. Only connectors needing no credentials can be connected this way; anything requiring an API key or OAuth is still a console step. The category enum lists what can be connected.

What it is called on each surface

The wire name is provision-connector everywhere: it is what the Wexa MCP server advertises, the REST path is POST /v1/provision-connector, and each SDK exposes it under its own language's naming convention.

SurfaceName
Wexa MCP serverprovision-connector
REST APIPOST /v1/provision-connector
TypeScript SDKfabric.provisionConnector()
Python SDKfabric.provision_connector()

Arguments

1 of the 1 argument is required. Omitting a required one is refused before the tool runs, at the validation stage, so it costs nothing and changes nothing.

ArgumentTypeRequiredNotes
categoryone of 23RequiredThe connector to connect, e.g. "duckduckgo", "hackernews", "tables". One of: ask_a_website, bouncer, connector_catalog, content_creator, coworker_long_term_memory, coworker_trigger, duckduckgo, file_generator, hackernews, http, knowledge_base, master, nanobanana, parallel_ai, pdf_generator, pdf_handler, recall_ai, restful, runware, state_manager, tables, voice, wexa_api.

project_id, projectID, organization_id and executed_by are not arguments you pass: the platform binds all four from the credential you authenticated with, and both SDKs refuse them before the request leaves your process — see server-bound arguments.

What it returns

The three surfaces wrap this differently, and code written against one will not read another correctly — see return shape.

The shape of result for provision-connector is not recorded here: it was not captured against a live deployment. Call it once and read what comes back rather than assuming a shape.

Keeping the lifecycle_id is what lets you ask later why a call was allowed, refused or held.

Calling it

The same call on all four surfaces. Pick a tab once and every code block in the documentation follows it.

The ids in this example are real: they resolve against the project the documentation is written against, so the call runs as written once you point it at your own deployment. Swap them for the ids of your own objects.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "provision-connector",
    "arguments": {
      "category": "ask_a_website"
    }
  }
}

Errors

Both SDKs raise the same typed errors, chosen from the gateway's own error string first and its HTTP status second. provision-connector checks the fabric:skill.write grant, and reaches the seven classes every tool reaches — listed under the common set. These are the ones specific to it:

ErrorStatusRaised when
ApprovalRequired202A policy held this call for a person to approve. The error carries the approval id; see below.
ConfigurationError5xxprovision-connector is not available to you. Retrying will not help.

Governance

Every call to provision-connector runs through the same ten-stage lifecycle as every other Wexa tool: the credential is resolved to a scope, the fabric:skill.write grant is checked, quota is drawn down, the arguments are validated, policy rules are evaluated, the call is executed, the result is shaped and redacted, and an audit record is written. The lifecycle_id in the response is the handle to that record.

provision-connector is marked consequential, which means it changes something rather than only reading. Two things follow. It is audited in full rather than lightly, and a policy rule may hold it for human approval — in which case the call returns 202 and an ApprovalRequired error carrying the approval id, and the SDKs can wait for the decision and resume rather than making you call again.

See also

The tool index and errors.