fix some bugs

This commit is contained in:
锦恢 2025-05-26 02:04:19 +08:00
parent f0b8b88fbc
commit b4544f08f4
5 changed files with 10 additions and 5 deletions

View File

@ -3,6 +3,8 @@
## [main] 0.1.1
- 修复 SSH 连接 Ubuntu 的情况下的部分 bug
- 修复 python 项目点击 openmcp 进行连接时,初始化参数错误的问题
- 取消 service 底层的 mcp 连接复用技术,防止无法刷新
- 修复连接后,可能无法在欢迎界面选择调试选项的 bug
## [main] 0.1.0
- 新特性:支持同时连入多个 mcp server

View File

@ -2,7 +2,7 @@
"name": "openmcp",
"displayName": "OpenMCP",
"description": "An all in one MCP Client/TestTool",
"version": "0.1.0",
"version": "0.1.1",
"publisher": "kirigaya",
"author": {
"name": "kirigaya",

View File

@ -6,7 +6,7 @@
</span>
<p>
OpenMCP Client 0.1.0 OpenMCP@<a href="https://www.zhihu.com/people/can-meng-zhong-de-che-xian">锦恢</a> 开发
OpenMCP Client 0.1.1 OpenMCP@<a href="https://www.zhihu.com/people/can-meng-zhong-de-che-xian">锦恢</a> 开发
</p>
<p>

View File

@ -563,6 +563,10 @@ class McpClientAdapter {
return msg;
}
public get connected() {
return this.clients.length > 0 && this.clients[0].connectionResult.success;
}
public async loadPanels() {
const masterNode = this.clients[0];
await loadPanels(masterNode);

View File

@ -7,7 +7,7 @@
<!-- TODO: 支持更多的 server -->
<span
class="debug-option"
:class="{ 'disable': !client.connectionResult.success }"
:class="{ 'disable': !mcpClientAdapter.connected }"
v-for="(option, index) of debugOptions"
:key="index"
@click="chooseDebugMode(index)"
@ -32,7 +32,6 @@ import { mcpClientAdapter } from '../connect/core';
defineComponent({ name: 'welcome' });
const { t } = useI18n();
const client = mcpClientAdapter.masterNode;
const debugOptions = [
{
@ -60,7 +59,7 @@ const debugOptions = [
function chooseDebugMode(index: number) {
// TODO: server
if (client.connectionResult.success) {
if (mcpClientAdapter.connected) {
const activeTab = tabs.activeTab;
activeTab.component = markRaw(debugModes[index]);