Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package io.agentscope.core.tool.mcp;

import static io.agentscope.core.Version.VERSION;

import io.modelcontextprotocol.client.McpAsyncClient;
import io.modelcontextprotocol.client.McpClient;
import io.modelcontextprotocol.client.McpSyncClient;
Expand Down Expand Up @@ -296,7 +298,7 @@ public Mono<McpClientWrapper> buildAsync() {

McpSchema.Implementation clientInfo =
new McpSchema.Implementation(
"agentscope-java", "AgentScope Java Framework", "1.0.10-SNAPSHOT");
"agentscope-java", "AgentScope Java Framework", VERSION);

McpSchema.ClientCapabilities clientCapabilities =
McpSchema.ClientCapabilities.builder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ void testVersionConstant() {
// Verify version constant is set
Assertions.assertNotNull(Version.VERSION, "VERSION constant should not be null");
Assertions.assertFalse(Version.VERSION.isEmpty(), "VERSION constant should not be empty");
Assertions.assertEquals("1.0.10-SNAPSHOT", Version.VERSION, "VERSION should match current version");
Assertions.assertEquals(
"1.0.10-SNAPSHOT", Version.VERSION, "VERSION should match current version");
}

@Test
Expand Down
Loading