|
@@ -15,7 +15,7 @@
|
|
|
面向标准核查、报告编制、合规咨询、政策问答等场景,为 AI 工具提供专业、可信、可追溯的环境知识服务。
|
|
面向标准核查、报告编制、合规咨询、政策问答等场景,为 AI 工具提供专业、可信、可追溯的环境知识服务。
|
|
|
</p>
|
|
</p>
|
|
|
<div class="home-hero-actions">
|
|
<div class="home-hero-actions">
|
|
|
- <button type="button" class="home-hero-btn home-hero-btn-primary" @click="openRouteInNewTab('mcpServer')">
|
|
|
|
|
|
|
+ <button type="button" class="home-hero-btn home-hero-btn-primary" @click="openRouteInNewTab('guide')">
|
|
|
<icon-svg name="cut_in_Mcp" size="16px" />
|
|
<icon-svg name="cut_in_Mcp" size="16px" />
|
|
|
<span>立即接入 MCP</span>
|
|
<span>立即接入 MCP</span>
|
|
|
</button>
|
|
</button>
|
|
@@ -71,7 +71,7 @@
|
|
|
<div class="home-overview-icon-box">
|
|
<div class="home-overview-icon-box">
|
|
|
<icon-svg name="Mcp_serve" size="22px" />
|
|
<icon-svg name="Mcp_serve" size="22px" />
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="home-overview-card-value">4+</div>
|
|
|
|
|
|
|
+ <div class="home-overview-card-value">7+</div>
|
|
|
<div class="home-overview-card-label">MCP 服务</div>
|
|
<div class="home-overview-card-label">MCP 服务</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -137,7 +137,7 @@
|
|
|
<span v-for="tool in item.toolList || []" :key="tool.id">{{ tool.name }}</span>
|
|
<span v-for="tool in item.toolList || []" :key="tool.id">{{ tool.name }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="home-scenes-card-footer">
|
|
<div class="home-scenes-card-footer">
|
|
|
- <span class="home-scenes-card-stat">累计请求 {{ formatHotRequestCount(item.requestCount30d) }}</span>
|
|
|
|
|
|
|
+ <span class="home-scenes-card-stat">累计请求次数 {{ formatHotRequestCount(item.requestCount30d) }}</span>
|
|
|
<router-link class="home-scenes-card-link"
|
|
<router-link class="home-scenes-card-link"
|
|
|
:to="{ name: 'mcpServer', query: { id: item.id } }">查看详情</router-link>
|
|
:to="{ name: 'mcpServer', query: { id: item.id } }">查看详情</router-link>
|
|
|
</div>
|
|
</div>
|
|
@@ -231,7 +231,7 @@
|
|
|
<icon-svg name="Mcp_general" size="38px" />
|
|
<icon-svg name="Mcp_general" size="38px" />
|
|
|
<div>
|
|
<div>
|
|
|
<div class="home-guide-feature-title">MCP 通用配置</div>
|
|
<div class="home-guide-feature-title">MCP 通用配置</div>
|
|
|
- <div class="home-guide-feature-desc">3 个 Server 共用同一套 Token</div>
|
|
|
|
|
|
|
+ <div class="home-guide-feature-desc">所有 Server 共用同一套 Token</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="home-guide-feature">
|
|
<div class="home-guide-feature">
|
|
@@ -284,9 +284,9 @@
|
|
|
<div class="home-guide-tool-step">
|
|
<div class="home-guide-tool-step">
|
|
|
<div class="home-guide-tool-step-num">1</div>
|
|
<div class="home-guide-tool-step-num">1</div>
|
|
|
<div class="home-guide-tool-step-copy">
|
|
<div class="home-guide-tool-step-copy">
|
|
|
- <div class="home-guide-tool-step-title">自定义 MCP 配置</div>
|
|
|
|
|
|
|
+ <div class="home-guide-tool-step-title">复制右侧提示词到workbuddy</div>
|
|
|
<div class="home-guide-tool-step-desc">
|
|
<div class="home-guide-tool-step-desc">
|
|
|
- 复制右侧 JSON → 对话框发送「这是环评云助手的 MCP 服务 JSON,帮我配置自定义的 mcp」并粘贴
|
|
|
|
|
|
|
+ 在 workbuddy 粘贴该提示词,点击发送按钮,等待接入成功
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -307,8 +307,6 @@
|
|
|
<div class="home-guide-note-title">注意事项</div>
|
|
<div class="home-guide-note-title">注意事项</div>
|
|
|
</div>
|
|
</div>
|
|
|
<ul class="home-guide-note-list">
|
|
<ul class="home-guide-note-list">
|
|
|
- <li>自定义接入时 type 字段为 streamableHttp(H 大写)</li>
|
|
|
|
|
- <li>不需要在 URL 末尾添加 /mcp 后缀</li>
|
|
|
|
|
<li>{{ guideToken ? "JSON 配置文件已自动填入真实 Token" : "将 YOUR_ACCESS_TOKEN 替换为真实 Token" }}</li>
|
|
<li>{{ guideToken ? "JSON 配置文件已自动填入真实 Token" : "将 YOUR_ACCESS_TOKEN 替换为真实 Token" }}</li>
|
|
|
<li>若工具未立即出现,完全退出并重新打开 WorkBuddy 后再验证</li>
|
|
<li>若工具未立即出现,完全退出并重新打开 WorkBuddy 后再验证</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -333,7 +331,7 @@
|
|
|
<span></span>
|
|
<span></span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="home-guide-code-title">mcp.prompt</div>
|
|
<div class="home-guide-code-title">mcp.prompt</div>
|
|
|
- <button type="button" class="home-guide-code-copy" @click="copyGuideMcpJson">
|
|
|
|
|
|
|
+ <button type="button" class="home-guide-code-copy" @click="copyGuideWorkbuddyPrompt">
|
|
|
<icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
|
|
<icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
|
|
|
<span>复制</span>
|
|
<span>复制</span>
|
|
|
</button>
|
|
</button>
|
|
@@ -1176,9 +1174,10 @@ const highlightGuideJson = (jsonText) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const guideMcpJsonHtml = computed(() => highlightGuideJson(guideMcpJson.value));
|
|
const guideMcpJsonHtml = computed(() => highlightGuideJson(guideMcpJson.value));
|
|
|
|
|
+const guideWorkbuddyPrompt = "这是环评云助手的MCP服务JSON,帮我配置自定义的mcp";
|
|
|
const guideWorkbuddyMcpJsonHtml = computed(
|
|
const guideWorkbuddyMcpJsonHtml = computed(
|
|
|
() =>
|
|
() =>
|
|
|
- `<span class="code-string">这是环评云助手的MCP服务JSON,帮我配置自定义的mcp</span>\n${guideMcpJsonHtml.value}`,
|
|
|
|
|
|
|
+ `<span class="code-string">${guideWorkbuddyPrompt}</span>\n${guideMcpJsonHtml.value}`,
|
|
|
);
|
|
);
|
|
|
const guideMcpLines = computed(() =>
|
|
const guideMcpLines = computed(() =>
|
|
|
Array.from({ length: guideMcpJson.value.split("\n").length }, (_, i) => i + 1),
|
|
Array.from({ length: guideMcpJson.value.split("\n").length }, (_, i) => i + 1),
|
|
@@ -1211,6 +1210,8 @@ const copyText = async (text) => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
const copyGuideMcpJson = () => copyText(guideMcpJson.value);
|
|
const copyGuideMcpJson = () => copyText(guideMcpJson.value);
|
|
|
|
|
+const copyGuideWorkbuddyPrompt = () =>
|
|
|
|
|
+ copyText(`${guideWorkbuddyPrompt}\n${guideMcpJson.value}`);
|
|
|
const guideCliSteps = [
|
|
const guideCliSteps = [
|
|
|
{
|
|
{
|
|
|
num: 1,
|
|
num: 1,
|