@google-cloud/cloud-run-mcp 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +13 -0
- package/.env.gcloud-sdk-oauth +13 -0
- package/README.md +38 -0
- package/constants.js +8 -0
- package/lib/clients.js +72 -2
- package/lib/cloud-api/auth.js +1 -0
- package/lib/cloud-api/billing.js +16 -10
- package/lib/cloud-api/build.js +6 -4
- package/lib/cloud-api/helpers.js +19 -6
- package/lib/cloud-api/projects.js +15 -10
- package/lib/cloud-api/registry.js +5 -1
- package/lib/cloud-api/run.js +12 -11
- package/lib/cloud-api/storage.js +2 -1
- package/lib/deployment/deployer.js +24 -7
- package/lib/middleware/oauth.js +92 -0
- package/lib/util/helpers.js +12 -0
- package/mcp-server.js +51 -7
- package/package.json +2 -2
- package/test/local/clients.test.js +33 -3
- package/test/local/mcp-server-stdio.test.js +0 -1
- package/test/local/mcp-server-streamable-http.test.js +69 -0
- package/test/local/mcp-server.test.js +1 -0
- package/test/local/middleware/oauth.test.js +156 -0
- package/test/local/tools.test.js +2 -2
- package/tools/register-tools.js +18 -5
- package/.kokoro/kokoro_build.sh +0 -22
- package/.kokoro/presubmit.cfg +0 -21
- package/.kokoro/run_tests.sh +0 -31
package/.kokoro/presubmit.cfg
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# -*- protobuffer -*-
|
|
2
|
-
# proto-file: google3/devtools/kokoro/config/proto/build.proto
|
|
3
|
-
# proto-message: BuildConfig
|
|
4
|
-
|
|
5
|
-
# Location of the bash script. Should have value <github_scm.name>/<path_from_repository_root>.
|
|
6
|
-
# github_scm.name is specified in the job configuration (next section).
|
|
7
|
-
build_file: "cloud-run-mcp/.kokoro/kokoro_build.sh"
|
|
8
|
-
|
|
9
|
-
container_properties {
|
|
10
|
-
docker_image: "us-central1-docker.pkg.dev/kokoro-container-bakery/kokoro/ubuntu/ubuntu2204/full:next"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
env_vars {
|
|
14
|
-
key: "GOOGLE_CLOUD_PROJECT"
|
|
15
|
-
value: "cloud-run-mcp-server-testing"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
env_vars {
|
|
19
|
-
key: "GCP_PARENT"
|
|
20
|
-
value: "folders/138095058155"
|
|
21
|
-
}
|
package/.kokoro/run_tests.sh
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
#
|
|
3
|
-
# Copyright 2022 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
# Fail on any error.
|
|
18
|
-
set -xe
|
|
19
|
-
|
|
20
|
-
# cd to project root
|
|
21
|
-
cd "$(dirname "$0")"/..
|
|
22
|
-
|
|
23
|
-
# Install dependencies
|
|
24
|
-
npm install
|
|
25
|
-
|
|
26
|
-
# Run tests
|
|
27
|
-
npm run test:workflows # Run tests related to all workflows
|
|
28
|
-
npm run test:projects # Run tests related to GCP projects
|
|
29
|
-
npm run test:services # Run tests related to services
|
|
30
|
-
npm run test:deploy # Run tests related to deployments
|
|
31
|
-
npm run test:gcp-auth # Run tests related to GCP authentication
|