Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7d1d6b7
[AI-3673] HTTP connectors: manifest model for http tools (#2303)
kanat Nov 23, 2026
2a29dac
[AI-3674] HTTP connectors: sources/http tool source (#2316)
kanat Nov 24, 2026
ba3949a
Merge main into feature/ai-3669-http-connectors
kanat Nov 24, 2026
5a798ad
[AI-3675] HTTP connectors: call-time safety for http tools (#2324)
kanat Nov 24, 2026
aed810a
[AI-3676] HTTP connectors: the API accepts http connectors (#2344)
kanat Nov 25, 2026
6242e92
AI-3669: Merge origin/main into feature/ai-3669-http-connectors
kanat Nov 25, 2026
6a02297
Merge remote-tracking branch 'origin/main' into sync2
kanat Nov 25, 2026
c94d490
Merge commit '0e5197a7ab01cae0455d194e4c9ea6c47fc8e6b4' into sync2
kanat Nov 25, 2026
c72f50f
[AI-3871] A connector's answer names its source kind (#2464)
kanat Nov 25, 2026
bc0700e
AI-3669: Merge main (accelerate-v0.6.382, 4a6dd1132) into feature/ai-…
kanat Nov 25, 2026
73e80f2
[AI-3870] Pin delegation's pinned-digest check; own SDK note for AI-3…
kanat Nov 25, 2026
eba0003
AI-3669: Merge main (c4119ba23) into feature/ai-3669-http-connectors
kanat Nov 25, 2026
5ebafd4
AI-3669: the feature after main's custom connector limits (#2430)
kanat Nov 25, 2026
74b3431
AI-3669: each grant and layout of the http read-only delegation test …
kanat Nov 25, 2026
6b22172
test: an http custom connector meets the limits of an MCP one
kanat Nov 25, 2026
469960b
[AI-3870] Fix the fake provider's CodeQL alert; SDK skill names http …
kanat Nov 25, 2026
6940736
Merge commit '9e208750d700bf466a4dbaef1b5fde25baad4653' into sync2
kanat Nov 25, 2026
cde9f64
Merge origin/main into feature/ai-3669-http-connectors
kanat Nov 26, 2026
134c593
chore: regenerate clients after merging main
kanat Nov 26, 2026
8e36d34
test(api): an imported http connector is weighed by the sensitive rul…
kanat Nov 26, 2026
0caa225
[AI-3831] Test a checked sync of an http connector over an edit no sy…
kanat Nov 26, 2026
014b2e4
Merge main into feature/ai-3669-http-connectors
kanat Nov 26, 2026
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`, `sync_hash`, `check_changes`).

- 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.
- `sync_hash` is the fingerprint of the file the CLI synced the connector from. The connector
returns it until a create without one, from the dashboard or the API, clears it.
- `check_changes: true` refuses the create (409 `unsynced_changes`) when the newest revision has no
Expand Down
7 changes: 4 additions & 3 deletions .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 Expand Up @@ -184,8 +184,9 @@ no round to say why, so the reply ends with a line that the approval expired, th
waiting did not run (an earlier call of the reply may have), and that the person can ask again, and the step says "Not allowed in time" (`ExpireApprovals`, `conversation/parts.go`, AI-3302). An entry must match a tool the
binding grants, and `sandbox: true` is refused beside it (`session/connector_approval.go`).
Beside a sensitive connector (Nessy), a binding's write tool needs `require_approval`: the
config is refused unless each tool it grants only reads (`read_only_tools`) or is held, and a
`tool_patterns` binding needs an entry such as `*` that matches each pattern as written
config is refused unless each tool it grants only reads (`read_only_tools`, or an http tool's
`read_only` at the digest the grant pins: one granted by name or at another revision's digest
does not) or is held, and a `tool_patterns` binding needs an entry such as `*` that matches each pattern as written
(`connectors/sensitive`, `ConfigComplaint`; across a parent and its child agents, `GraphComplaint`). In agent.yaml it is `require_approval:` on
the connector entry. Tools a caller declares at createSession are not checked. The caller runs
them, or a person's device does (`executor: client`). The router sends a client tool's
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/sdk/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ SDK with a router has moved: `client.Router` (Go, .NET), `client.router` (Python
Python, where `Router(...)` stays for the `url`/`customer_id` case. JavaScript has no router yet; when it
gets one, start from `client.router(name)`.

Connector definitions can be listed, read and added. `listConnectors` (`GET /v1/agents/connectors`, with `q`, `limit` and `cursor`, answering a `ConnectorPage`), `getConnector` (`GET /v1/agents/connectors/{id}`) and `createConnector` (`POST /v1/agents/connectors`, a `CustomConnectorRequest` for a custom MCP server whose id starts with `custom_`) are all server-side only. A `Connector` shows the schemes, inputs, scopes and `client.registration` (where the OAuth client may come from, a list of `ConnectorClientRegistrationMethod`), never endpoints or the operator's client variables. Name them `connectors.list/get/create`, spelled the way the language spells them, with `list` following the cursor like `Items.Unwind`. Go has the regenerated client (`ListConnectors`, `GetConnector`, `CreateConnector`) and no resource methods yet. JavaScript, Python (`plugins/stream`), .NET, Ruby, Rust and PHP need their generated clients regenerated and the three methods added. Swift, Kotlin and Dart need nothing, since none of the three is client-accessible. The schemas were named `ConnectorDefinition` and `ConnectorDefinitionPage` until October 5; they are `Connector` and `ConnectorPage` now, while the store keeps `ConnectorDefinition` for one stored revision. JavaScript and Python have the renamed generated types; .NET, Ruby, Rust and PHP pick the rename up when they regenerate.
Connector definitions can be listed, read and added. `listConnectors` (`GET /v1/agents/connectors`, with `q`, `limit` and `cursor`, answering a `ConnectorPage`), `getConnector` (`GET /v1/agents/connectors/{id}`) and `createConnector` (`POST /v1/agents/connectors`, a `CustomConnectorRequest` for a custom connector, an MCP endpoint or an http API (`.claude/skills/sdk/notes/2026-11-24-ai-3676.md`), whose id starts with `custom_`) are all server-side only. A `Connector` shows the schemes, inputs, scopes and `client.registration` (where the OAuth client may come from, a list of `ConnectorClientRegistrationMethod`), never endpoints or the operator's client variables. Name them `connectors.list/get/create`, spelled the way the language spells them, with `list` following the cursor like `Items.Unwind`. Go has the regenerated client (`ListConnectors`, `GetConnector`, `CreateConnector`) and no resource methods yet. JavaScript, Python (`plugins/stream`), .NET, Ruby, Rust and PHP need their generated clients regenerated and the three methods added. Swift, Kotlin and Dart need nothing, since none of the three is client-accessible. The schemas were named `ConnectorDefinition` and `ConnectorDefinitionPage` until October 5; they are `Connector` and `ConnectorPage` now, while the store keeps `ConnectorDefinition` for one stored revision. JavaScript and Python have the renamed generated types; .NET, Ruby, Rust and PHP pick the rename up when they regenerate.

Plugins, `plugin_events` and `mcp_servers` are removed (AI-1757): catalog plugins, their logins, options, events and logos, and MCP servers named by URL, were replaced by connectors (a built-in connector, or a custom one for a server's URL). The notes that described them are gone; what is left is the refusal: agent.yaml refuses the keys (AI-1784, AI-2531), the router answers a non-empty list with a 400 (AI-2538), and the generated clients no longer carry their types (AI-2772).

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 by this change, so it shows neither `base_url` nor the tools; AI-3871 gives it `sources` (`2026-11-25-ai-3871.md`). 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.
1 change: 1 addition & 0 deletions .claude/skills/sdk/notes/2026-11-25-ai-3871.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The `Connector` the router answers now has `sources` (AI-3871), a list of `ConnectorSource` `{kind}` whose `kind` is `mcp` or `http`: a custom connector made from an `endpoint` reads `mcp`, one made from `http` reads `http`, and a built-in names its own. It never carries a URL, a path or a tool. This adds a required field to a response, so a client that builds a `Connector` itself, or compares one whole, must give it `sources`. In Go it is `[]ConnectorSource`, and the constants are `ConnectorSourceKindMCP` and `ConnectorSourceKindHTTP`. Go, JavaScript, Python (`plugins/stream`), .NET, Ruby, Rust and PHP have the regenerated clients; Swift, Kotlin and Dart generate nothing new. Other SDKs need to update: a resource method that returns a connector (`connectors.get`, `connectors.list`), where an SDK has one, exposes `sources`, so a caller can tell an http connector from an MCP one.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,14 @@ 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 Rust SDK's `get_agent_log` takes a query

`Client::get_agent_log(id)` is `get_agent_log(id, &GetAgentLogQuery { region })`: the router reads a log in the region it names, and `GetAgentLogQuery::default()` reads it in the region answering, as before.
Expand Down
127 changes: 122 additions & 5 deletions acceleration/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,11 @@ components:
setup:
$ref: '#/components/schemas/ConnectorSetup'
description: What a person does at the provider before the first consent, such as registering an OAuth client. Absent when the manifest says nothing.
sources:
description: 'How the connector''s tools are reached, one entry per source, by kind only: never a URL, a path or a credential. A custom connector made from an endpoint is mcp, one made from http is http.'
items:
$ref: '#/components/schemas/ConnectorSource'
type: array
sync_hash:
description: The fingerprint of the file the CLI last synced onto this connector. Absent on a built-in, and on a connector that was never synced or was written since by anything that is not a sync.
readOnly: true
Expand All @@ -3604,6 +3609,7 @@ components:
- schemes
- inputs
- scopes
- sources
- client
- channel
- created_at
Expand Down Expand Up @@ -4095,6 +4101,24 @@ components:
- title
- description
type: object
ConnectorSource:
additionalProperties: false
description: One way a connector's tools are reached. Only its kind is shown.
properties:
kind:
$ref: '#/components/schemas/ConnectorSourceKind'
required:
- kind
type: object
ConnectorSourceKind:
description: mcp is an MCP server that lists the tools, http an HTTP API whose tools the manifest lists.
enum:
- mcp
- http
type: string
x-enum-varnames:
- ConnectorSourceKindMCP
- ConnectorSourceKindHTTP
ConnectorToolGrant:
description: One tool a binding allows.
properties:
Expand Down Expand Up @@ -4699,7 +4723,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 @@ -4713,9 +4737,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 @@ -4751,9 +4778,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 @@ -16374,7 +16491,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 @@ -16412,7 +16529,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
15 changes: 15 additions & 0 deletions acceleration/cmd/router/connectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ func (s *ConnectorRegistrySuite) TestWithConnectorsOnEveryVerifierIsRegisteredBy
s.Len(registry.Verifiers, 3)
}

// AI-3674: a manifest's sources[].kind names mcp or http, and validate and a session find each
// source by it (sourceKinds, internal/api/connection_tools.go and internal/session).
func (s *ConnectorRegistrySuite) TestWithConnectorsOnBothToolSourcesAreRegisteredByKind() {
s.settings.Connectors.Enabled = true

registry, err := newConnectorRegistry(s.settings, nil)

s.Require().NoError(err)
for _, kind := range []string{core.SourceKindMCP, core.SourceKindHTTP} {
s.Require().Contains(registry.ToolSources, kind)
s.Equal(kind, registry.ToolSources[kind].Kind())
}
s.Len(registry.ToolSources, 2)
}

func (s *ConnectorRegistrySuite) TestWithConnectorsOffNoVerifierIsRegistered() {
registry, err := newConnectorRegistry(s.settings, nil)

Expand Down
Loading
Loading