Skip to content

Commit f78b016

Browse files
authored
fix: support for MCP env vars (#1467)
By default allow configuration of auth via env vars
1 parent 3fa9f0e commit f78b016

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ require (
3636
github.com/sethvargo/go-githubactions v1.1.0
3737
github.com/speakeasy-api/huh v1.1.2
3838
github.com/speakeasy-api/openapi v0.2.1
39-
github.com/speakeasy-api/openapi-generation/v2 v2.632.1
39+
github.com/speakeasy-api/openapi-generation/v2 v2.632.2
4040
github.com/speakeasy-api/openapi-overlay v0.10.1
4141
github.com/speakeasy-api/sdk-gen-config v1.30.21
4242
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.26.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ github.com/speakeasy-api/libopenapi v0.21.8-fixhiddencomps-fixed h1:wnCsprnR6nlo
581581
github.com/speakeasy-api/libopenapi v0.21.8-fixhiddencomps-fixed/go.mod h1:Gc8oQkjr2InxwumK0zOBtKN9gIlv9L2VmSVIUk2YxcU=
582582
github.com/speakeasy-api/openapi v0.2.1 h1:0mtVOnLTcBdNXHGDMhk9ri41nek1f/K8/iepT9V7Z8s=
583583
github.com/speakeasy-api/openapi v0.2.1/go.mod h1:ilmVT3LXMsqLZcHOp3JN/DjZZS0PK9v6H7Jt8iPeC48=
584-
github.com/speakeasy-api/openapi-generation/v2 v2.632.1 h1:/s3VchLW9at4IHygPNgUFwlEMKTlK0DFgbGsr/3sTYc=
585-
github.com/speakeasy-api/openapi-generation/v2 v2.632.1/go.mod h1:rzd0RW/K82YiG43g8vewVcFXfwOWp1wUoZib2oCJ4l0=
584+
github.com/speakeasy-api/openapi-generation/v2 v2.632.2 h1:A3Atik98hCWfW5IhJqT1HIPlnMkSxV/fblLUOy6OM4Y=
585+
github.com/speakeasy-api/openapi-generation/v2 v2.632.2/go.mod h1:rzd0RW/K82YiG43g8vewVcFXfwOWp1wUoZib2oCJ4l0=
586586
github.com/speakeasy-api/openapi-overlay v0.10.1 h1:XFx/GvJvtAGf4dcQ6bxzsLNf76x/QWE2X0SSZrWojBQ=
587587
github.com/speakeasy-api/openapi-overlay v0.10.1/go.mod h1:n0iOU7AqKpNFfEt6tq7qYITC4f0yzVVdFw0S7hukemg=
588588
github.com/speakeasy-api/sdk-gen-config v1.30.21 h1:gfyApIjMItLjAL1/y0Z5UjJX7EcesliJeypRMkzeuo8=

prompts/configs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func setDevContainerDefaults(output *config.Configuration, wf *workflow.Workflow
189189
}
190190

191191
func setEnvVarPrefixDefaults(output *config.Configuration, target *workflow.Target, sdkClassName string) {
192-
if target.Target == "go" || target.Target == "typescript" || target.Target == "python" {
192+
if target.Target == "go" || target.Target == "typescript" || target.Target == "python" || target.Target == "mcp-typescript" {
193193
if cfg, ok := output.Languages[target.Target]; ok && cfg.Cfg != nil {
194194
cfg.Cfg["envVarPrefix"] = strings.ToUpper(sdkClassName)
195195
}

scripts/upgrade.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5050

5151
echo "$ git add go.mod go.sum"
5252
git add go.mod go.sum
53-
echo "$ git commit -m\"$SUMMARY\""
54-
git commit -m"$SUMMARY"
53+
echo "$ git commit --allow-empty-message -m \"$SUMMARY\""
54+
git commit --allow-empty-message -m "$SUMMARY"
5555
echo "===== When you are ready, execute the following command to upgrade ====="
5656
echo "$ git push origin main"
5757
)

0 commit comments

Comments
 (0)