fix(ai-gateway): Update MCP get started#5963
Merged
Merged
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the AI Gateway MCP Server getting-started how-to to use kongctl-based configuration instead of the Konnect API example, aligning the tutorial with the current declarative workflow for AI Gateway entities.
Changes:
- Switches the how-to’s tool metadata and main setup example to
kongctl apply. - Refactors the example config to use top-level
ai_gateway_mcp_serversand environment-sourced secrets (!env). - Removes the previously-disabled (commented) Konnect API request example content.
Comment on lines
34
to
36
| prereqs: | ||
| inline: | ||
| # kongctl prereq disabled: kongctl's ai_gateway.mcp_servers.tools schema doesn't yet support | ||
| # the query/parameters fields this tutorial's tool needs. Re-enable once it does. | ||
| # - title: kongctl | ||
| # content: | | ||
| # This tutorial uses [kongctl](/kongctl/) to manage {{site.ai_gateway}} configuration. | ||
|
|
||
| # 1. Install **kongctl** from [developer.konghq.com/kongctl](/kongctl/). | ||
| # 1. Verify the installation: | ||
|
|
||
| # ```sh | ||
| # kongctl version | ||
| # ``` | ||
| # 1. Adopt your {{site.ai_gateway}} into a kongctl namespace so the apply command later in this tutorial can manage it: | ||
|
|
||
| # ```sh | ||
| # kongctl adopt ai-gateway "$AI_GATEWAY_ID" \ | ||
| # --namespace weather-mcp \ | ||
| # --pat "$KONNECT_TOKEN" | ||
| # ``` | ||
| - title: WeatherAPI account |
Comment on lines
62
to
+64
| kongctl apply -f - --auto-approve --pat "$KONNECT_TOKEN" <<EOF | ||
| _defaults: | ||
| kongctl: | ||
| namespace: weather-mcp | ||
| ai_gateways: | ||
| - ref: weather-ai-gateway | ||
| id: "$AI_GATEWAY_ID" | ||
| mcp_servers: | ||
| - ref: weather-mcp | ||
| type: conversion-listener | ||
| name: weather-mcp | ||
| display_name: "Weather API" | ||
| enabled: true | ||
| policies: [] | ||
| access: | ||
| acl_attribute_type: consumer | ||
| acls: | ||
| allow: [] | ||
| default_tool_acls: | ||
| deny: [] | ||
| config: | ||
| url: https://api.weatherapi.com/v1/current.json | ||
| route: | ||
| paths: | ||
| - /weather | ||
| logging: | ||
| payloads: false | ||
| statistics: true | ||
| server: | ||
| timeout: 60000 | ||
| tools: | ||
| - name: get-current-weather | ||
| description: Get current weather for a location | ||
| method: GET | ||
| path: /weather | ||
| query: | ||
| key: | ||
| - $WEATHERAPI_API_KEY | ||
| parameters: | ||
| - name: q | ||
| in: query | ||
| required: true | ||
| schema: | ||
| type: string | ||
| description: Location query. Accepts US Zipcode, UK Postcode, Canada Postalcode, IP address, latitude/longitude, or city name. | ||
| - ref: ai-quickstart |
juliamrch
reviewed
Jul 15, 2026
juliamrch
reviewed
Jul 15, 2026
juliamrch
reviewed
Jul 15, 2026
juliamrch
reviewed
Jul 15, 2026
Co-authored-by: Julia <101819212+juliamrch@users.noreply.github.com>
juliamrch
approved these changes
Jul 15, 2026
juliamrch
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #issue
https://deploy-preview-5963--kongdeveloper.netlify.app/ai-gateway/get-started-with-mcp-server/
Preview Links
Checklist
descriptionentry in frontmatter.