support ai-mook
This commit is contained in:
parent
c366494637
commit
d3e01376f0
@ -28,3 +28,4 @@ software/**
|
||||
.github
|
||||
webpack
|
||||
.openmcp
|
||||
.vscode
|
@ -1,5 +1,10 @@
|
||||
# Change Log
|
||||
|
||||
## [main] 0.1.9
|
||||
- 增加 mook 功能:可以利用随机种子或者AI生成来自动化填充测试 tool 的表单数据
|
||||
- 修复 issue #44: 完成链接跳转的平台适配
|
||||
- 修复 issue #36: 完成非文件夹打开下的成功启动
|
||||
|
||||
## [main] 0.1.8
|
||||
- 增加 STDIO 下的热更新,现在用户修改 mcp 代码,openmcp 会自动完成一切相关功能的热更新,无需用户手动重启。
|
||||
- 完成 mcpconfig.json 的导出功能,导出的 配置文件 可以通过 openmcp-sdk 框架完成低代码 agent 部署;也可以直接载入 Claude Desktop 等等 MCP 客户端中,实现 MCP 的快速部署和使用。
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "openmcp",
|
||||
"displayName": "OpenMCP",
|
||||
"description": "An all in one MCP Client/TestTool",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"publisher": "kirigaya",
|
||||
"private": true,
|
||||
"author": {
|
||||
@ -224,7 +224,7 @@
|
||||
"setup": "yarn install && yarn prepare:ocr",
|
||||
"serve": "turbo serve",
|
||||
"build": "turbo build && tsc -p ./ && node esbuild.config.js",
|
||||
"build:plugin": "yarn build && tsc && vsce package",
|
||||
"build:plugin": "yarn build && tsc && vsce package --allow-package-all-secrets",
|
||||
"vscode:prepublish": "node esbuild.config.js",
|
||||
"compile": "tsc -p ./",
|
||||
"watch": "tsc -watch -p ./",
|
||||
|
@ -56,6 +56,7 @@ import { llmManager, llms } from '@/views/setting/llm';
|
||||
import { mcpClientAdapter } from '@/views/connect/core';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { useMessageBridge } from '@/api/message-bridge';
|
||||
import { gotoWebsite } from '@/hook/util';
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
|
||||
@ -166,11 +167,11 @@ const exportCode = async () => {
|
||||
|
||||
const gotoHowtoUse = () => {
|
||||
if (locale.value === 'zh') {
|
||||
window.open('https://kirigaya.cn/openmcp/zh/sdk-tutorial/#%E4%BD%BF%E7%94%A8');
|
||||
gotoWebsite('https://kirigaya.cn/openmcp/zh/sdk-tutorial/#%E4%BD%BF%E7%94%A8');
|
||||
} else if (locale.value === 'ja') {
|
||||
window.open('https://kirigaya.cn/openmcp/ja/sdk-tutorial/#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95');
|
||||
gotoWebsite('https://kirigaya.cn/openmcp/ja/sdk-tutorial/#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95');
|
||||
} else {
|
||||
window.open('https://kirigaya.cn/openmcp/sdk-tutorial/#usage');
|
||||
gotoWebsite('https://kirigaya.cn/openmcp/sdk-tutorial/#usage');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,3 +91,15 @@ export function getImageBlobUrlByBase64(base64String: string, mimeType: string,
|
||||
}
|
||||
return blobUrl;
|
||||
}
|
||||
|
||||
export function gotoWebsite(url: string) {
|
||||
const platform = getPlatform();
|
||||
const bridge = useMessageBridge();
|
||||
if (platform === 'vscode') {
|
||||
// For VSCode, use the webview API to open external links
|
||||
bridge.commandRequest('vscode/openExternal', { url });
|
||||
} else if (platform === 'web') {
|
||||
// For web, use the standard window.open method
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@
|
||||
|
||||
<div style="display: inline-flex;">
|
||||
<el-button class="join-qq" type="primary"
|
||||
@click="joinQQGroup('https://qm.qq.com/cgi-bin/qm/qr?k=C6ZUTZvfqWoI12lWe7L93cWa1hUsuVT0&jump_from=webapi&authKey=McW6B1ogTPjPDrCyGttS890tMZGQ1KB3QLuG4aqVNRaYp4vlTSgf2c6dMcNjMuBD')">
|
||||
@click="gotoWebsite('https://qm.qq.com/cgi-bin/qm/qr?k=C6ZUTZvfqWoI12lWe7L93cWa1hUsuVT0&jump_from=webapi&authKey=McW6B1ogTPjPDrCyGttS890tMZGQ1KB3QLuG4aqVNRaYp4vlTSgf2c6dMcNjMuBD')">
|
||||
<span class="iconfont icon-QQ"></span>
|
||||
{{ t('join-discussion') }}
|
||||
</el-button>
|
||||
@ -42,24 +42,17 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { gotoWebsite } from '@/hook/util';
|
||||
import { defineComponent } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const version = '0.1.8';
|
||||
const version = '0.1.9';
|
||||
const author = 'LSTM-Kirigaya (锦恢)';
|
||||
|
||||
defineComponent({ name: 'about' });
|
||||
|
||||
function joinQQGroup(url: string) {
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
function gotoWebsite(url: string) {
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
@ -105,6 +105,12 @@ export function revealOpenMcpWebviewPanel(
|
||||
exportFile(data.filename, data.content);
|
||||
break;
|
||||
|
||||
case 'vscode/openExternal':
|
||||
if (data.url) {
|
||||
vscode.env.openExternal(vscode.Uri.parse(data.url));
|
||||
}
|
||||
break;
|
||||
|
||||
case 'vscode/clipboard/writeText':
|
||||
vscode.env.clipboard.writeText(data.text);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user