Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .claude/skills/add-connector/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ First decide which kind you need. Connecting an existing connector to an agent i
## A custom connector

Dashboard: **Library › Connectors › New connector**. API: `POST /v1/agents/connectors`
(`CustomConnectorRequest`: `id`, `name`, `endpoint`, `schemes`, optional `scopes`,
(`CustomConnectorRequest`: `id`, `name`, `endpoint` or `http`, `schemes`, optional `scopes`,
`client`, `category`, `description`).

- The id starts with `custom_`, for example `custom_crm`. Built-ins never use that prefix.
- `endpoint` is the MCP server's https URL.
- `http` is an HTTP API in place of an MCP server: `base_url` and `tools`, each tool with
`name`, `description`, `method`, `path`, `parameters` and `read_only` (only on a GET or a
HEAD). Send `endpoint` or `http`, not both. `base_url` must be a public https URL, and it is
never shown again. `oauth2_code` is not available for one.
- `schemes` is how a connection signs in: `oauth2_code`, `bearer`, `api_key`, or `none`.
- A public server that needs no credential takes `schemes: ["none"]`. Create the connection,
then connect it with `PUT /v1/agents/connections/{id}/credentials` and the body
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/connectors/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The same with the API (operations in `acceleration/api/openapi.yaml`):
|---|---|
| The catalog | `GET /v1/agents/connectors` |
| The app's own OAuth client | `PUT /v1/agents/connectors/{id}/oauth-client` |
| A custom MCP connector | `POST /v1/agents/connectors` (`id` starts with `custom_`) |
| A custom MCP or HTTP API connector | `POST /v1/agents/connectors` (`id` starts with `custom_`; `endpoint` or `http`) |
| A connection | `POST /v1/agents/connections` (`connector_id`, `owner`, `auth_scheme`) |
| OAuth consent | `POST /v1/agents/connections/{id}/authorizations` → open `launch_url` in a popup |
| A token or key | `PUT /v1/agents/connections/{id}/credentials` |
Expand Down
1 change: 1 addition & 0 deletions .claude/skills/sdk/notes/2026-11-24-ai-3676.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`createConnector` (`POST /v1/agents/connectors`) takes an HTTP API in place of an MCP server (AI-3676). `CustomConnectorRequest` has a new optional `http`, a `CustomHTTPAPI` `{base_url, tools}`. Each tool is a `CustomHTTPTool` `{name, description, method, path, parameters, read_only}`: `method` is one of `GET`, `HEAD`, `POST`, `PUT`, `PATCH` and `DELETE`, and `parameters` maps a name to a `CustomHTTPParameter` `{type, description, required}`, whose `type` is one of `string`, `number`, `integer` and `boolean`. `endpoint` is no longer required: a request sends a non-empty `endpoint` or `http`, not both. This breaks existing callers in four SDKs. In Go, `CustomConnectorRequest.Endpoint` is now a `*string` (`sdks/go/acceleration/generated.go`), and a caller that set it as a string now sets a pointer. In Rust, `CustomConnectorRequest.endpoint` is now an `Option<String>` (`sdks/rust/src/types.rs`), so a struct literal or a read of a `String` no longer compiles. In PHP (`sdks/php/src/Generated/CustomConnectorRequest.php`) and Python (`plugins/stream`, `_generated/models/custom_connector_request.py`), `endpoint` moves from the first constructor argument to after `schemes`, so a positional call no longer matches; named and keyword arguments still work. The `Connector` the router answers is unchanged, so it shows neither `base_url` nor the tools. Go, JavaScript, Python (`plugins/stream`), .NET, Ruby, Rust and PHP have the regenerated clients. Other SDKs need to update: a `connectors.create` resource method, where an SDK has one, takes `http` beside `endpoint`. Swift, Kotlin and Dart need nothing, since `createConnector` is not client-accessible.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,15 @@ Every reply the agent abandons logs one INFO line, `the agent was interrupted`,

## Breaking Changes

### `CustomConnectorRequest`'s endpoint is optional in the Go, Rust, PHP and Python SDKs

`POST /v1/agents/connectors` now takes either an MCP `endpoint` or an `http` block with a `base_url` and its tools, so `endpoint` is optional in every generated `CustomConnectorRequest` (AI-3676):

- Go: `CustomConnectorRequest.Endpoint` is now `*string`. Set it with a pointer (for example `Endpoint: &url`); a caller that set a plain string no longer compiles.
- Rust: `CustomConnectorRequest.endpoint` is now `Option<String>`. Set it with `Some(url)`; a struct literal with a plain `String`, or a read of one, no longer compiles.
- PHP: the `CustomConnectorRequest` constructor takes `$endpoint` after `$schemes`, not first. A positional call no longer matches; named arguments work as before.
- Python (`plugins/stream`): the generated `CustomConnectorRequest` takes `endpoint` after `schemes`, not first. A positional call no longer matches; keyword arguments work as before.

### The Go SDK reads no items for a turn with no id

`AgentResponse.Items`, on the handle `Responses.Create` returns, fails with `client.ErrUnnamedTurn` when the turn has no id: the router names none for an incognito session, a speech-to-speech session or the retry of a `request_id` already taken. It used to read every turn in the session instead, passed off as this turn's; a caller that relied on that now gets the error, and reads `Session.Responses.Items` for the whole session or follows `Session.Events` (AI-3571).
Expand Down
103 changes: 98 additions & 5 deletions acceleration/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4652,7 +4652,7 @@ components:
type: object
CustomConnectorRequest:
additionalProperties: false
description: A custom MCP server for the app's agents to connect to. An unknown field is refused rather than ignored.
description: A custom MCP server or HTTP API for the app's agents to connect to. An unknown field is refused rather than ignored.
properties:
category:
maxLength: 80
Expand All @@ -4663,9 +4663,12 @@ components:
maxLength: 1000
type: string
endpoint:
description: 'The MCP server, over Streamable HTTP: a public https URL without userinfo, query or fragment. An address on a private network, loopback or link-local is refused.'
description: 'The MCP server, over Streamable HTTP: a public https URL without userinfo, query or fragment. An address on a private network, loopback or link-local is refused. Set this or http, not both.'
maxLength: 2048
type: string
http:
$ref: '#/components/schemas/CustomHTTPAPI'
description: An HTTP API whose tools the connector lists itself, in place of an MCP server. Set this or endpoint, not both.
id:
description: Starts with custom_, which no built-in does, so a custom definition never stands in for one. Creating an id that exists stores the next revision, unless the newest already says the same.
pattern: ^custom_[a-z][a-z0-9_]{0,56}$
Expand Down Expand Up @@ -4695,9 +4698,99 @@ components:
required:
- id
- name
- endpoint
- schemes
type: object
CustomHTTPAPI:
additionalProperties: false
description: An HTTP API a custom connector calls, and the tools it offers an agent.
properties:
base_url:
description: 'The API the tools call, each at its path under it: a public https URL without userinfo, query or fragment. An address on a private network, loopback or link-local is refused. Never shown once stored.'
maxLength: 2048
type: string
tools:
description: At least one and at most 128, each name once.
items:
$ref: '#/components/schemas/CustomHTTPTool'
maxItems: 128
minItems: 1
type: array
required:
- base_url
- tools
type: object
CustomHTTPParameter:
additionalProperties: false
description: One value the model gives an http tool.
properties:
description:
maxLength: 1000
type: string
required:
description: The model must give it. A parameter in the path must be required.
type: boolean
type:
enum:
- string
- number
- integer
- boolean
type: string
x-enum-varnames:
- CustomHTTPParameterTypeString
- CustomHTTPParameterTypeNumber
- CustomHTTPParameterTypeInteger
- CustomHTTPParameterTypeBoolean
required:
- type
type: object
CustomHTTPTool:
additionalProperties: false
description: 'One tool of an http connector: one request, whose method and path are fixed.'
properties:
description:
description: What the tool does, which the model reads to know when to use it. Up to 1000 bytes.
maxLength: 1000
type: string
method:
enum:
- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE
type: string
x-enum-varnames:
- CustomHTTPToolMethodGET
- CustomHTTPToolMethodHEAD
- CustomHTTPToolMethodPOST
- CustomHTTPToolMethodPUT
- CustomHTTPToolMethodPATCH
- CustomHTTPToolMethodDELETE
name:
description: 1 to 63 letters, digits, _ or -. The model is offered it after the binding's name and __.
pattern: ^[A-Za-z0-9_-]{1,63}$
type: string
parameters:
additionalProperties:
$ref: '#/components/schemas/CustomHTTPParameter'
description: The values the model gives, by name, up to 64. A parameter not in the path goes into the query of a GET, HEAD or DELETE and into a JSON body otherwise. A name a client reads as a method override, such as _method or X-HTTP-Method-Override, is refused.
maxProperties: 64
type: object
path:
description: Under base_url, starting with /, without a query or fragment. Each {name} in it is the parameter of that name, which must be required.
maxLength: 2048
type: string
read_only:
description: The tool only reads. Only a GET or HEAD tool may say so.
type: boolean
required:
- name
- description
- method
- path
type: object
CustomModel:
properties:
base_url:
Expand Down Expand Up @@ -16243,7 +16336,7 @@ paths:
summary: List or search connectors
post:
description: |-
Stores a custom MCP server as one of the app's connectors. Sending an id the app already has stores its next revision, which connections pick up when they reconnect; sending the same definition again changes nothing. A built-in cannot be changed this way.
Stores a custom MCP server, or an HTTP API and its tools, as one of the app's connectors. Sending an id the app already has stores its next revision, which connections pick up when they reconnect; sending the same definition again changes nothing. A built-in cannot be changed this way.

Server-side only: it needs a server-side token, so it cannot be reached from an end user's device.
operationId: createConnector
Expand Down Expand Up @@ -16281,7 +16374,7 @@ paths:
$ref: '#/components/responses/InternalError'
"503":
$ref: '#/components/responses/Unavailable'
summary: Add a custom MCP connector
summary: Add a custom connector
/v1/agents/connectors/{id}:
delete:
description: |-
Expand Down
Loading
Loading