@douyinfe/semi-mcp 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -388,26 +388,7 @@ try {
|
|
|
388
388
|
async function main() {
|
|
389
389
|
const server = new Server({
|
|
390
390
|
name: 'semi-mcp',
|
|
391
|
-
version: packageJson.version
|
|
392
|
-
title: 'Semi Design MCP',
|
|
393
|
-
description: 'Semi Design 组件文档和组件列表查询工具',
|
|
394
|
-
websiteUrl: 'https://semi.design',
|
|
395
|
-
icons: [
|
|
396
|
-
{
|
|
397
|
-
src: 'https://semi.design/favicon.ico',
|
|
398
|
-
mimeType: 'image/x-icon',
|
|
399
|
-
sizes: [
|
|
400
|
-
'32x32'
|
|
401
|
-
]
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
src: 'https://unpkg.com/@douyinfe/semi-icons@latest/src/svgs/semi_logo.svg',
|
|
405
|
-
mimeType: 'image/svg+xml',
|
|
406
|
-
sizes: [
|
|
407
|
-
'any'
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
]
|
|
391
|
+
version: packageJson.version
|
|
411
392
|
}, {
|
|
412
393
|
capabilities: {
|
|
413
394
|
tools: {},
|
|
@@ -476,9 +457,9 @@ async function main() {
|
|
|
476
457
|
});
|
|
477
458
|
const transport = new StdioServerTransport();
|
|
478
459
|
await server.connect(transport);
|
|
479
|
-
console.error('Semi MCP Server 已启动,使用 stdio 传输');
|
|
480
460
|
}
|
|
481
461
|
main().catch((error)=>{
|
|
482
|
-
|
|
462
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
463
|
+
process.stderr.write(`Semi MCP Server 启动失败: ${errorMessage}\n`);
|
|
483
464
|
process.exit(1);
|
|
484
465
|
});
|
package/package.json
CHANGED