17 Commits

Author SHA1 Message Date
John Howard
2371a5f37d
Docs: use URL for schemas (#954)
Makes it much more practical to use these
2026-02-12 14:52:28 -08:00
Markus Kobler
f338c08dc7
docs(mcp): Update OpenAPI example (#861)
Update OpenAPI example documentation to support correct CORS headers for
HTTP streaming connections and include instructions for running Petstore
locally via `docker compose`.
2026-01-26 14:54:34 -08:00
Markus Kobler
36ecb2f2ec
Update config json-schema location (#802)
Small quality-of-life improvement for editing example configs by
renaming `schema/local.json` to `schema/config.json`.

---

The YAML files have been formatted using a formatter that follows
Go/Kubernetes YAML indentation style. I can remove this formatting if
you prefer the change to be as minimal as possible.
2026-01-06 10:42:05 -08:00
John Howard
008f27c5a0
Simplify backend configuration (#255)
This allows specifying the TLS, host, port, and path all in one field.
2025-07-31 15:27:21 -07:00
John Howard
777ea21084
improve schema and remove obsolete port field (#230)
* improve schema and remove obsolete port field

* fix unknown fields

* fix validation
2025-07-28 16:45:13 -07:00
John Howard
559282c66b
Agentgateway vNext (#157)
* Agentgateway vNext

* Use 1.88

* Fix telemetry

* Cleanup

* fixes

* fix transform trailers

* Fix test, and openapi

* cleanup protos

* Fix timeouts and examples

* Fix websockets
2025-07-09 12:51:59 -07:00
Eitan Yarmush
dab07afea9
feat: Allow loading OpenAPI schemas from remote URLs [TESTING GOOGLE JULES AGENT] (#136)
* feat: Allow loading OpenAPI schemas from remote URLs

This change introduces the ability to specify OpenAPI schemas via remote URLs
in addition to local file paths for MCP OpenAPI targets.

Key changes:

- Updated `crates/agentgateway/proto/mcp/target.proto`:
    - Modified `OpenAPITarget` to use a `oneof schema_source` which can be either
      `local_schema` (using `common.LocalDataSource`) or `remote_schema`
      (using `common.RemoteDataSource`).

- Updated `crates/agentgateway/src/outbound/openapi.rs`:
    - Added an async function `load_openapi_schema` that takes an
      `OpenAPITarget` protobuf and loads the schema.
    - If `remote_schema` is specified, it fetches the schema from the URL
      (supporting headers from `RemoteDataSource`).
    - If `local_schema` is specified, it loads from the local path or inline bytes.
    - Handles JSON and YAML formats, and includes error handling for network
      issues, invalid URLs, and malformed content.
    - Updated `ParseError` enum for more specific error reporting.
    - Added comprehensive unit tests for `load_openapi_schema` covering
      remote and local loading scenarios with `wiremock` and `tempfile`.

- Updated `crates/agentgateway/src/outbound.rs`:
    - Modified the `outbound::OpenAPITarget` struct to store the raw
      protobuf `schema_source` instead of pre-parsed tools and prefix.
    - Its `TryFrom<XdsOpenAPITarget>` implementation now stores this
      `schema_source` without immediate processing.

- Updated `crates/agentgateway/src/relay/pool.rs`:
    - In `ConnectionPool::connect`, for `McpTargetSpec::OpenAPI`:
        - It now calls the new `openapi::load_openapi_schema` with the
          stored protobuf `schema_source`.
        - After successfully loading, it calls `openapi::parse_openapi_schema`
          and `openapi::get_server_prefix` to derive tools and the prefix.
        - The `openapi::Handler` is then instantiated with these dynamically
          derived values.

This enhancement provides greater flexibility in configuring OpenAPI targets
by allowing schemas to be hosted and fetched from remote locations.

* fixed up manualy

* remote works

* fmt

* dependency issue

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-05-28 12:17:17 -04:00
Eitan Yarmush
654a3f086b
remove proxy references (#68) 2025-04-23 16:38:05 -04:00
Peter Jausovec
601b480710
one part renaming the UI + some fixes (#66)
* wip

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* color updates

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* wip

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* update the openapi inputs

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

---------

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
2025-04-23 15:53:00 -04:00
Eitan Yarmush
91d9ec9bfc
validate listener name, output protocol (#65)
* validate listener name, output protocol

* -> agentgateway

* fmt
2025-04-23 14:41:23 -04:00
Eitan Yarmush
e1b1f2adb5
Various qol fixes (#37)
* various qol-fixes

* formatting

* no more unwraps in pool :)

* feature for gcp
2025-04-16 15:54:32 -04:00
Eitan Yarmush
53154a3805 rename 2025-04-16 14:46:48 +00:00
Eitan Yarmush
9d0115df7a
Dynamic listeners (#33)
* dynamic-listeners

* move options out

* prepping to merge with main

* just need to figure out the host thing

* compiles

* rbac working

* rename otlp json name

* add backend_tls config

* fmt

* config multiple listeners

* all config files load properly

* validate examples parse properly in CI

* needs -B

* update example READMEs

* TLS README

* endpoints

* better serialization
2025-04-15 11:53:01 -04:00
Eitan Yarmush
45492c1fb1
Proto listener (#27)
* convert to proto listener

* TLS is working
2025-04-09 16:43:17 -04:00
Eitan Yarmush
dad390f4d2 add doc for RBAC 2025-04-08 17:21:33 +00:00
Eitan Yarmush
32d57a9b7a add doc for openapi 2025-04-08 16:51:16 +00:00
Eitan Yarmush
32ee54be8c
Major release changes (#21)
* major-release-changes

* fix up some openapi stuff

* refactored for referecnes

* compiles and formatting

* add upstream headers

* getting there on schema

* compiles...

* refactor

* unit tests

* fmt

* compiles

* use released
2025-04-08 11:05:31 -04:00