Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit 9978c25

Browse files
committed
package name refactoring
1 parent 39310c2 commit 9978c25

File tree

21 files changed

+88
-89
lines changed

21 files changed

+88
-89
lines changed

spring-ai-mcp-core/src/main/java/spring/ai/experimental/mcp/client/McpAsyncClient.java renamed to spring-ai-mcp-core/src/main/java/org/springframework/ai/mcp/client/McpAsyncClient.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
package spring.ai.experimental.mcp.client;
1+
package org.springframework.ai.mcp.client;
22

33
import java.time.Duration;
44

55
import com.fasterxml.jackson.core.type.TypeReference;
66
import com.fasterxml.jackson.databind.ObjectMapper;
77
import reactor.core.publisher.Mono;
8-
import spring.ai.experimental.mcp.spec.DefaultMcpSession;
9-
import spring.ai.experimental.mcp.spec.McpTransport;
10-
import spring.ai.experimental.mcp.spec.McpError;
11-
import spring.ai.experimental.mcp.spec.McpSchema;
12-
import spring.ai.experimental.mcp.spec.McpSchema.GetPromptRequest;
13-
import spring.ai.experimental.mcp.spec.McpSchema.GetPromptResult;
14-
import spring.ai.experimental.mcp.spec.McpSchema.ListPromptsResult;
15-
import spring.ai.experimental.mcp.spec.McpSchema.PaginatedRequest;
8+
import org.springframework.ai.mcp.spec.DefaultMcpSession;
9+
import org.springframework.ai.mcp.spec.McpTransport;
10+
import org.springframework.ai.mcp.spec.McpError;
11+
import org.springframework.ai.mcp.spec.McpSchema;
12+
import org.springframework.ai.mcp.spec.McpSchema.GetPromptRequest;
13+
import org.springframework.ai.mcp.spec.McpSchema.GetPromptResult;
14+
import org.springframework.ai.mcp.spec.McpSchema.ListPromptsResult;
15+
import org.springframework.ai.mcp.spec.McpSchema.PaginatedRequest;
1616

1717
/**
1818
* @author Dariusz Jędrzejczyk

spring-ai-mcp-core/src/main/java/spring/ai/experimental/mcp/client/McpClient.java renamed to spring-ai-mcp-core/src/main/java/org/springframework/ai/mcp/client/McpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package spring.ai.experimental.mcp.client;
16+
package org.springframework.ai.mcp.client;
1717

1818
import java.time.Duration;
1919

2020
import com.fasterxml.jackson.databind.ObjectMapper;
21-
import spring.ai.experimental.mcp.spec.McpTransport;
21+
import org.springframework.ai.mcp.spec.McpTransport;
2222

2323
/**
2424
* Factory class providing static methods for creating Model Context Protocol (MCP) clients.

spring-ai-mcp-core/src/main/java/spring/ai/experimental/mcp/client/McpSyncClient.java renamed to spring-ai-mcp-core/src/main/java/org/springframework/ai/mcp/client/McpSyncClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package spring.ai.experimental.mcp.client;
1+
package org.springframework.ai.mcp.client;
22

33
import java.time.Duration;
44

5-
import spring.ai.experimental.mcp.client.util.Assert;
6-
import spring.ai.experimental.mcp.spec.McpSchema;
7-
import spring.ai.experimental.mcp.spec.McpSchema.GetPromptRequest;
8-
import spring.ai.experimental.mcp.spec.McpSchema.GetPromptResult;
9-
import spring.ai.experimental.mcp.spec.McpSchema.ListPromptsResult;
5+
import org.springframework.ai.mcp.client.util.Assert;
6+
import org.springframework.ai.mcp.spec.McpSchema;
7+
import org.springframework.ai.mcp.spec.McpSchema.GetPromptRequest;
8+
import org.springframework.ai.mcp.spec.McpSchema.GetPromptResult;
9+
import org.springframework.ai.mcp.spec.McpSchema.ListPromptsResult;
1010

1111
/**
1212
* @author Dariusz Jędrzejczyk
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package spring.ai.experimental.mcp.client.stdio;
1+
package org.springframework.ai.mcp.client.stdio;
22

33
import java.util.ArrayList;
44
import java.util.Arrays;
@@ -9,7 +9,7 @@
99

1010
import com.fasterxml.jackson.annotation.JsonInclude;
1111
import com.fasterxml.jackson.annotation.JsonProperty;
12-
import spring.ai.experimental.mcp.client.util.Assert;
12+
import org.springframework.ai.mcp.client.util.Assert;
1313

1414
/**
1515
* Server parameters for stdio client.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package spring.ai.experimental.mcp.client.stdio;
16+
package org.springframework.ai.mcp.client.stdio;
1717

1818
import java.util.Map;
1919
import java.util.List;
2020

2121
import com.fasterxml.jackson.annotation.JsonInclude;
2222
import com.fasterxml.jackson.annotation.JsonProperty;
2323
import com.fasterxml.jackson.databind.ObjectMapper;
24-
import spring.ai.experimental.mcp.client.stdio.ServerParametersParser.McpServerConfigurations.McpServerConfiguration;
24+
import org.springframework.ai.mcp.client.stdio.ServerParametersParser.McpServerConfigurations.McpServerConfiguration;
2525

2626
/**
2727
* @author Christian Tzolov
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package spring.ai.experimental.mcp.client.stdio;
1+
package org.springframework.ai.mcp.client.stdio;
22

33
import java.io.BufferedReader;
44
import java.io.BufferedWriter;
@@ -13,12 +13,12 @@
1313
import reactor.core.publisher.Mono;
1414
import reactor.core.scheduler.Scheduler;
1515
import reactor.core.scheduler.Schedulers;
16-
import spring.ai.experimental.mcp.client.util.Assert;
17-
import spring.ai.experimental.mcp.spec.AbstractMcpTransport;
18-
import spring.ai.experimental.mcp.spec.McpSchema.JSONRPCMessage;
19-
import spring.ai.experimental.mcp.spec.McpSchema.JSONRPCNotification;
20-
import spring.ai.experimental.mcp.spec.McpSchema.JSONRPCRequest;
21-
import spring.ai.experimental.mcp.spec.McpSchema.JSONRPCResponse;
16+
import org.springframework.ai.mcp.client.util.Assert;
17+
import org.springframework.ai.mcp.spec.AbstractMcpTransport;
18+
import org.springframework.ai.mcp.spec.McpSchema.JSONRPCMessage;
19+
import org.springframework.ai.mcp.spec.McpSchema.JSONRPCNotification;
20+
import org.springframework.ai.mcp.spec.McpSchema.JSONRPCRequest;
21+
import org.springframework.ai.mcp.spec.McpSchema.JSONRPCResponse;
2222

2323
/**
2424
* Stdio client for communicating with a server process.

spring-ai-mcp-core/src/main/java/spring/ai/experimental/mcp/client/util/Assert.java renamed to spring-ai-mcp-core/src/main/java/org/springframework/ai/mcp/client/util/Assert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package spring.ai.experimental.mcp.client.util;
16+
package org.springframework.ai.mcp.client.util;
1717

1818
import reactor.util.annotation.Nullable;
1919

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package spring.ai.experimental.mcp.spec;
16+
package org.springframework.ai.mcp.spec;
1717

1818
import java.util.function.Consumer;
1919

2020
import com.fasterxml.jackson.databind.ObjectMapper;
2121
import reactor.core.publisher.Mono;
2222
import reactor.core.publisher.Sinks;
23-
import spring.ai.experimental.mcp.client.util.Assert;
24-
import spring.ai.experimental.mcp.spec.McpSchema.JSONRPCMessage;
23+
import org.springframework.ai.mcp.client.util.Assert;
24+
import org.springframework.ai.mcp.spec.McpSchema.JSONRPCMessage;
2525

2626
/**
2727
* @author Christian Tzolov

spring-ai-mcp-core/src/main/java/spring/ai/experimental/mcp/spec/DefaultMcpSession.java renamed to spring-ai-mcp-core/src/main/java/org/springframework/ai/mcp/spec/DefaultMcpSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package spring.ai.experimental.mcp.spec;
1+
package org.springframework.ai.mcp.spec;
22

33
import java.time.Duration;
44
import java.util.Map;
@@ -9,7 +9,7 @@
99
import com.fasterxml.jackson.databind.ObjectMapper;
1010
import reactor.core.publisher.Mono;
1111
import reactor.core.publisher.MonoSink;
12-
import spring.ai.experimental.mcp.client.util.Assert;
12+
import org.springframework.ai.mcp.client.util.Assert;
1313

1414
/**
1515
* Implementation of the MCP client session.

spring-ai-mcp-core/src/main/java/spring/ai/experimental/mcp/spec/McpError.java renamed to spring-ai-mcp-core/src/main/java/org/springframework/ai/mcp/spec/McpError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package spring.ai.experimental.mcp.spec;
16+
package org.springframework.ai.mcp.spec;
1717

1818
public class McpError extends RuntimeException {
1919

0 commit comments

Comments
 (0)