Compare commits

..

3 Commits

Author SHA1 Message Date
e98ad038c5 Merge branch 'main' of https://github.com/LSTM-Kirigaya/openmcp-client 2025-05-23 19:14:15 +08:00
d1a392bb87 修改 mcp 的引入方式 2025-05-23 19:14:11 +08:00
AmeZora
ac9bd43654
Update README.md 2025-05-23 01:17:48 +08:00
4 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,8 @@
<a href="https://discord.gg/af5cfB9a" target="_blank" style="display: inline-block; padding: 8px 16px; background-color: rgb(84, 176, 84); color: white; border-radius: .5em; text-decoration: none;"> 加入 OpenMCP Discord频道</a>
<a href="https://github.com/LSTM-Kirigaya/openmcp-document" target="_blank" style="display: inline-block; padding: 8px 16px; background-color: rgb(84, 176, 84); color: white; border-radius: .5em; text-decoration: none;"> 📄OpenMCP 文档仓库</a>
</div>
@ -17,6 +19,7 @@
一款用于 MCP 服务端调试的一体化 vscode/trae/cursor 插件。
<video src="https://github.com/user-attachments/assets/ab214d58-b77c-4bd3-8b6e-55552f4036ff" width="100%"></video>
<video src="https://github.com/user-attachments/assets/c17a4ad7-83b4-47ff-8627-85b57ad18940" width="100%"></video>

View File

@ -471,7 +471,8 @@ class McpClientAdapter {
for (const item of launchSignature) {
// 创建一个新的客户端
const client = reactive(new McpClient());
// const client = reactive(new McpClient());
const client = new McpClient();
// 同步连接参数
await client.acquireConnectionSignature(item);

View File

@ -62,11 +62,11 @@ function selectServer(index: number) {
}
function addServer() {
const client = reactive(new McpClient());
// const client = reactive(new McpClient());
const client = new McpClient();
mcpClientAdapter.clients.push(client);
mcpClientAdapter.currentClientIndex = mcpClientAdapter.clients.length - 1;
client.handleEnvSwitch(true);
mcpClientAdapter.clients.at(-1)!.handleEnvSwitch(true);
}

View File

@ -1,6 +1,6 @@
{
"clientId": "83313e18-3e18-513e1883c06-813e1883c060a6b-60a6b641",
"currentIndex": 1,
"currentIndex": 0,
"tabs": [
{
"name": "交互测试",