File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
src/main/java/cloudcode/helloworld Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Add the dependency to your `pom.xml`:
9696<dependency >
9797 <groupId >com.google.cloud.mcp</groupId >
9898 <artifactId >mcp-toolbox-sdk-java</artifactId >
99- <version >0.1.1</version >
99+ <version >0.1.1</version > <!-- x-release-please-version -->
100100 <scope >compile</scope >
101101</dependency >
102102```
@@ -106,7 +106,7 @@ Add the dependency to your `pom.xml`:
106106```
107107dependencies {
108108 // Source: https://mvnrepository.com/artifact/com.google.cloud.mcp/mcp-toolbox-sdk-java
109- implementation("com.google.cloud.mcp:mcp-toolbox-sdk-java:0.1.1")
109+ implementation("com.google.cloud.mcp:mcp-toolbox-sdk-java:0.1.1") // x-release-please-version
110110}
111111```
112112
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ In any case remember to change the `YOUR_TOOLBOX_SERVICE_ENDPOINT` placeholder i
4545 <dependency >
4646 <groupId >com.google.cloud.mcp</groupId >
4747 <artifactId >mcp-toolbox-sdk-java</artifactId >
48- <version >0.1.1</version >
48+ <version >0.1.1</version > <!-- x-release-please-version -->
4949 </dependency >
5050 ```
5151
Original file line number Diff line number Diff line change 3333 <dependency >
3434 <groupId >com.google.cloud.mcp</groupId >
3535 <artifactId >mcp-toolbox-sdk-java</artifactId >
36- <version >0.1.1 </version ><!-- {x-version-update:mcp-toolbox-sdk-java:released} -->
36+ <version >0.1.2-SNAPSHOT </version ><!-- {x-version-update:mcp-toolbox-sdk-java:released} -->
3737 </dependency >
3838
3939 <dependency >
Original file line number Diff line number Diff line change 3232public class ExampleUsage {
3333 public static void main (String [] args ) {
3434 // CONFIGURATION
35- String targetUrl = "YOUR_TOOLBOX_SERVICE_ENDPOINT " ;
35+ String targetUrl = "https://toolbox-java-sdk-feb27-uxu5wi2jpa-uc.a.run.app/mcp " ;
3636
3737 // Match the Service URL if using Cloud Run OIDC
38- String tokenAudience = targetUrl ;
38+ String tokenAudience = "https://toolbox-java-sdk-feb27-uxu5wi2jpa-uc.a.run.app" ;
3939
4040 // --------------------------------------------------------------------------------
4141 // AUTHENTICATION SETUP
@@ -44,7 +44,7 @@ public static void main(String[] args) {
4444 // FOR PRODUCTION (Cloud Run): Comment out the 'keyPath' logic and use ADC directly.
4545 // --------------------------------------------------------------------------------
4646
47- String keyPath = "YOUR_CREDENTIALS_JSON_FILE_PATH.json" ;
47+ String keyPath = null ;
4848
4949 System .out .println ("--- Starting MCP Toolbox Integration Test ---" );
5050 System .out .println ("Target Server: " + targetUrl );
You can’t perform that action at this time.
0 commit comments