Skip to content

wiqd connector

Use wiqd connector to find published connectors or create one from your own MCP server or REST API. These commands do not require a plugin project. Creating a connector and adding it to a plugin are separate steps.

Terminal window
wiqd connector list [--search <text>] [--auth-type <type>] [--top <n>]
wiqd connector show <selector>
wiqd connector add --input-file <private-json> [--prepare-for-certification] [--dry-run] [--json]
# Add a connector you found to a plugin
wiqd plugin add connector --selector <selector> [--folder <plugin>]

Sign in with wiqd auth login. list and show read the Microsoft 365 catalog without changing tenant state.

Preview: disabled by default. Enable connector creation:

Terminal window
wiqd config flags set connector-add true
wiqd config flags show connector-add

The flag is required for all connector add modes, including --dry-run. When disabled, the command is hidden from help and completion; discovery and wiqd plugin add connector remain available.

Run wiqd config flags reset connector-add to restore the default. WIQD_FLAG_CONNECTOR_ADD=true or false overrides the saved setting; clear the variable to use the saved setting again. See Feature flags.

Save this as learn-mcp-server.json:

{
"serverUrl": "https://learn.microsoft.com/api/mcp",
"displayName": "Microsoft Learn MCP",
"authentication": { "type": "NoAuth" }
}
Terminal window
# Validate the input offline
wiqd connector add --input-file .\learn-mcp-server.json --dry-run --json
# Sign in, then create the connector
wiqd auth login --interactive
wiqd connector add --input-file .\learn-mcp-server.json --json

serverUrl must be HTTPS, without credentials, a query, or a fragment. displayName is limited to 40 characters, and the UTF-8 JSON file to 1 MiB. WIQD generates the MCP Swagger definition and preserves the full server path. Optional description and operation fields customize its metadata; operation cannot change the method, endpoint, authentication, or MCP protocol.

Without --dry-run, valid input is submitted without a confirmation prompt. Use --dry-run first: it validates input without reading credentials or contacting a service, but does not prove the service will accept it. Creation requires production permissions, even for a NoAuth server. Keep OAuth input files private and out of source control; secrets are file-only and are not included in output. --mock returns a labeled fixture without reading the input file or creating a connector.

Set authentication to match how users will connect to your MCP server or API. This is separate from the Microsoft 365 sign-in used to create the connector.

Connector authentication Required fields in authentication
NoAuth type only
APIKey type, apiKeyName, apiKeyLocation (header or query); not the key itself
EntraOAuth type, clientAppId (nonzero application GUID), clientAppSecret, scope
ExternalOAuth type, provider-issued clientAppId, clientAppSecret, scope, HTTPS externalIdpAuthorizationUrl and externalIdpTokenUrl; optional externalIdpRefreshUrl for a separate HTTPS refresh endpoint

For Entra OAuth, supply one scope without spaces, such as api://<resource-app-id>/access_as_user or https://api.contoso.com/read. Include the scope name, not just the resource URI. Relative scopes are also accepted. External OAuth accepts space-separated scopes, such as openid offline_access. Its client ID need not be a GUID; WIQD preserves the provider’s value unchanged (up to 8192 UTF-16 code units).

WIQD translates authentication into Swagger security and OAuth registration, not a top-level service authentication field. NoAuth uses no security requirements; APIKey defines the named header or query parameter; OAuth uses authorization-code flow. Entra uses Microsoft’s public-cloud common endpoints; External OAuth uses your supplied endpoints.

Configure host choices for each connection (advanced)

For an MCP server with multiple hosts, declare parameters so users can choose a host when creating a connection. Use {name} only in the hostname:

{
"displayName": "Contoso MCP",
"serverUrl": "https://{region}.api.contoso.com/mcp",
"parameters": {
"region": {
"type": "string",
"displayName": "Region",
"required": true,
"defaultValue": "eu",
"allowedValues": [
{ "value": "eu", "displayName": "Europe" },
{ "value": "us", "displayName": "United States" }
]
}
},
"authentication": { "type": "NoAuth" }
}

Replace the example hosts with your server’s hosts. Parameters are supported only with serverUrl, not REST definitions. External OAuth URLs can also use hostname tokens, but each referenced parameter must have allowedValues.

Parameter field Meaning
type string, or securestring for a secret value (not allowed in a URL)
displayName, description Label and help text in the connection dialog
required Whether a value must be chosen; defaults to false
defaultValue Preselected value; must be one of allowedValues when both are set
allowedValues Dropdown choices as { "value", "displayName" } entries
  • Declare 1–10 parameters with case-insensitively unique names: a letter followed by up to 63 letters, digits, or underscores. token is reserved for all auth modes; api_key is also reserved for API-key auth.
  • Each dropdown accepts 1–200 unique values, up to 2048 characters per value and 256 per label. These limits are separate from the 1 MiB input-file limit.
  • securestring parameters cannot have defaults or dropdown choices.
  • URL tokens must reference required string parameters. Tokens cannot appear in ports, paths, or queries. Host values cannot include ports; a fixed numeric port may appear in the URL.
  • Add hostAllowlist when server-host parameters lack dropdown values or produce more than 50 host combinations. It accepts up to 50 hostnames or *.suffix patterns, such as *.contoso.com. Wildcard suffixes need at least two labels. If supplied, it must cover every derived host when there are at most 50 combinations. It is not accepted for a fixed server host.
  • Each OAuth URL may expand to at most 50 hosts. OAuth also reserves ClientId, ClientSecret, RedirectUrl, Scopes, State, Code, CodeChallenge, CodeVerifier, RefreshToken, ResourceUri, AuthorizationUrl, TokenUrl, and RefreshUrl, ignoring case.

WIQD submits parameter definitions and URL templates, substituting defaults (or parameter names where no default exists) into the initial concrete URLs. Keep logical names in your input: MCP Platform stores custom OAuth parameters as token:<logicalName>, including those with fixed OAuth URLs. NoAuth/APIKey parameters keep plain names; generated credential fields are unchanged.

Service support is required. Per-connection parameters need MCP Platform dynamic-host support. OAuth URL templates also need registration and runtime support. A successful dry-run does not verify either prerequisite. Connection setup must collect required host values even for NoAuth connectors.

Create a connector from a REST/OpenAPI definition

Section titled “Create a connector from a REST/OpenAPI definition”

Use apiDefinition instead of serverUrl in the same input file. Embed a Swagger 2.0 (OpenAPI 2.0) JSON object; OpenAPI 3.x, YAML, bare API documents, and JSON-encoded strings are not supported. Do not include serverUrl, operation, or parameters with a REST definition.

Save this as inventory-api.json, replacing the illustrative host with your API:

{
"displayName": "Contoso Inventory",
"description": "List inventory items.",
"authentication": {
"type": "APIKey",
"apiKeyLocation": "header",
"apiKeyName": "X-API-Key"
},
"apiDefinition": {
"swagger": "2.0",
"info": {
"title": "Contoso Inventory API",
"version": "1.0.0"
},
"host": "api.contoso.com",
"basePath": "/v1",
"schemes": ["https"],
"paths": {
"/items": {
"get": {
"operationId": "ListInventoryItems",
"responses": {
"200": { "description": "Inventory items." }
}
}
}
}
}
}
Terminal window
wiqd connector add --input-file .\inventory-api.json --dry-run --json
wiqd connector add --input-file .\inventory-api.json --json

All four authentication modes apply. The outer authentication settings replace the definition’s security settings, including operation-level overrides. For API-key auth, supply the header or query parameter name, not the key itself. WIQD checks basic structure and HTTPS routing, preserves operations and schemas, and does not fetch references. The service performs full Swagger validation.

Run wiqd auth login --interactive with the Microsoft 365 account for your target tenant. Your administrator must consent to delegated AgentTools.PublishMCPServer.All for the WIQD client:

Application ID
WIQD client 7ea7c24c-b1f6-4a20-9d11-9ae12e9e7ac0
Production resource ea9ffc3e-8a23-4a7d-836d-234d7c7565c1

Enabling the preview does not grant this permission. App-only tokens are not supported. Creation uses the signed-in tenant and the production management endpoint, https://agent365.svc.cloud.microsoft/agents/connectors/add.

Save the returned connectorId. For OAuth, add every returned redirect URI to your OAuth app registration before users sign in. Output labels one URL Redirect URI and multiple URLs Redirect URIs; JSON always uses the redirectUris array, including for legacy single-URI service responses.

Creation does not publish the connector, create a connection, or add it to a plugin. Publication is service-controlled. To add the connector to an existing plugin, use the exact returned ID and preserve its original source type:

Creation input Plugin connector kind
serverUrl (MCP server) --kind remote-mcp
apiDefinition (REST/Swagger API) --kind openapi

For the Learn MCP example, save the server’s tools/list result (the object containing tools) as appPackage/learn-mcp-tools.json in your plugin:

Terminal window
wiqd plugin add connector --kind remote-mcp `
--name "Microsoft Learn MCP" `
--description "Search official Microsoft documentation" `
--url "https://learn.microsoft.com/api/mcp" `
--tool-description learn-mcp-tools.json `
--auth-reference-id "<returned-connectorId>" `
--dev-preview --folder .\learn-plugin

Omitting --auth-type with a reference selects ConnectionVault, which requires the --dev-preview opt-in shown above. Cowork requires the tool-description file. An MCP connector remains remote-mcp even though creation generates Swagger internally; the returned ID alone does not identify its kind.

Follow the reported error. WIQD shows sanitized service codes and messages in human-readable output and JSON error.code / error.message, including unfamiliar service codes.

If the outcome is unknown, check before retrying. A timeout, server error, partial certification result, or invalid response can occur after creation. Use the returned correlation ID to ask your service administrator to check logs and existing connectors. Absence from connector list is not proof of failure: it lists published catalog entries, not all created connectors.

WIQD never retries creation automatically. Verified pre-creation rejections omit the uncertain-outcome warning; fix the reported input, permission, conflict, or deployment issue. Otherwise, an HTTP error or a message saying “rejected” does not prove nothing was created.

Use --prepare-for-certification for certification preparation instead of ordinary creation. Use the same input file, without a connector wrapper or connectionVaultId:

Terminal window
wiqd connector add --input-file .\inventory-api.json --prepare-for-certification --dry-run --json
wiqd connector add --input-file .\inventory-api.json --prepare-for-certification --json

The service creates a tenant-scoped connector and stages static OAuth client credentials for Marketplace. This requires the certification API and its tenant-scoped connector service to be deployed; WIQD does not fall back to ordinary creation if they are unavailable. Preparation is not certification approval or publication.

Copy the returned connectorId exactly (shared_<apiId>-<tenantId>). validationConnectorId contains the same complete ID. WIQD checks the tenant suffix against your signed-in tenant; do not construct the ID from a display name or append _validation.

For the Inventory REST example, add it to an existing plugin, then package:

Terminal window
wiqd plugin add connector --kind openapi `
--name "Inventory" --description "Inventory API" `
--auth-reference-id "<returned-connectorId>" `
--dev-preview --folder .\inventory-plugin
wiqd plugin package --path .\inventory-plugin --offline `
--prepare-for-certification --output .\dist\inventory.zip --json

For MCP, use the earlier --kind remote-mcp example with the original URL, tool-description file, and complete certification ID.

Packaging creates inventory.zip with shared_<apiId> references and inventory.validation.zip with the complete tenant-suffixed references. Both output paths must be new. --offline validates the reference format without sign-in or network access; omit it for provisioned packaging. See certification packaging.

Terminal window
wiqd connector list --search "Azure DevOps"
Selector Title Connector Kind Authorization Reference Connector ID
Azure DevOps MCP Azure DevOps Plugin Azure DevOps MCP remoteMcpServer ConnectionVault shared_adomcpserver 5947d764-f2cc-48b8-8634-743e3fb7d438
Option Description
--search Case-insensitive match on title, connector, description, ID, or reference
--auth-type Exact authorization type, such as ConnectionVault or OAuthPluginVault
--top Return at most this many connectors (positive integer)

Copy the Selector value into show or plugin add connector --selector. It is usually the connector’s display name. When two materially different connectors share a name, the selector becomes an opaque <title-id>::<connector-id> value instead; copy it as-is. You never need a separate title ID.

Terminal window
wiqd connector show "Azure DevOps MCP"

show prints the title, IDs, kind, authorization, and the exact agentConnectors node that would be added to your plugin, including its toolSource. For a remote MCP connector it ends with the command that adds it:

Next steps:
1. wiqd plugin add connector --selector "Azure DevOps MCP" — Add this connector to a plugin

show leaves this step out when the selector contains a character that a shell could act on in the pasted command: ", a typographic double quote (“, ”, „), $, `, \, !, %, &, |, <, >, ^, or a line break. list and show still print the selector, so you can quote it for your shell yourself.

Run this from a plugin project, or point --folder at one:

Terminal window
wiqd plugin add connector --selector "Azure DevOps MCP"
Catalog connector "Azure DevOps MCP" is now in the plugin
Details
Id 5947d764-f2cc-48b8-8634-743e3fb7d438
Kind remoteMcpServer
Auth ConnectionVault (shared_adomcpserver)
Manifest appPackage/manifest.json

The command:

  • append the catalog’s exact agentConnectors node to appPackage/manifest.json, preserving its authorization block;
  • expose the connector capability automatically from that root manifest collection;
  • move the app manifest to the devPreview schema, because catalog connectors follow the catalog’s connector shape rather than wiqd’s numbered manual-authoring subset.

Re-running with the same selector is a no-op that reports already present. A different connector that reuses the same ID fails with DUPLICATE_CONNECTOR and leaves the manifest unchanged.

--selector replaces the manual options: combining it with --name, --description, --kind, --url, --tool-description, --auth-type, --auth-reference-id, or --dev-preview fails with INCOMPATIBLE_CONNECTOR_OPTION before anything is written. Without --selector, wiqd plugin add connector authors a connector from the manual options as before.

  • OpenAPI connectors. list and show include openApiConnector results, but adding one by selector fails with CONNECTOR_CATALOG_PREVIEW_CONFIRMATION_REQUIRED. After confirming you want the preview shape, use its Reference value with wiqd plugin add connector --kind openapi --dev-preview; see Existing OpenAPI custom connectors.
  • Inline tool lists. A catalog node that embeds its MCP tool list fails with UNSUPPORTED_CATALOG_CONNECTOR_TOOL_DESCRIPTION. Save the server’s tools/list output under appPackage/ and author the connector with wiqd plugin add connector --tool-description <file>.
  • Project scope. --selector targets structurally recognized plugin projects with contained m365agents.yml and appPackage/manifest.json.

Every command supports --json. The envelope command is connector.list, connector.show, or connector-add; wiqd plugin add connector --selector reports plugin.add.connector:

{
"status": "success",
"command": "plugin.add.connector",
"data": {
"id": "5947d764-f2cc-48b8-8634-743e3fb7d438",
"displayName": "Azure DevOps MCP",
"kind": "remoteMcpServer",
"authType": "ConnectionVault",
"titleId": "P_8d7e60b7-3dfa-21d8-162d-b91232776ed8",
"connectorId": "5947d764-f2cc-48b8-8634-743e3fb7d438",
"referenceId": "shared_adomcpserver",
"manifestVersion": "devPreview",
"added": true,
"alreadyPresent": false,
"warnings": []
}
}
Code Meaning
0 Discovery, inspection, composition, or connector creation succeeded
1 Invalid input, unknown or ambiguous selector, catalog or connector API failure, or local conflict
2 Not a plugin project, not signed in to Microsoft 365, or missing MCP Platform permission
130 Cancelled