install-mcp.jsにファイルパスの取得を追加し、interactive-setup.tsの手順を更新。コマンドをnpxからnodeに変更し、設定手順を明確化。
This commit is contained in:
parent
d9098425bd
commit
fec21a03c7
2 changed files with 12 additions and 6 deletions
|
|
@ -3,6 +3,10 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import readline from 'readline';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
|
|
|
|||
|
|
@ -145,19 +145,21 @@ export class InteractiveSetup {
|
|||
console.log('===================\n');
|
||||
console.log('次の手順:');
|
||||
console.log('1. TickTick MCP Serverを起動:');
|
||||
console.log(' npx @ticktick-ecosystem/mcp-server\n');
|
||||
console.log('2. Claude Desktopで使用する場合:');
|
||||
console.log(' node dist/index.js\n');
|
||||
console.log('2. Claude Code CLIで使用する場合:');
|
||||
console.log(' node install-mcp.js で自動設定\n');
|
||||
console.log('3. Claude Desktopで使用する場合:');
|
||||
console.log(' 設定ファイルに以下を追加:');
|
||||
console.log(' {');
|
||||
console.log(' "mcpServers": {');
|
||||
console.log(' "ticktick": {');
|
||||
console.log(' "command": "npx",');
|
||||
console.log(' "args": ["@ticktick-ecosystem/mcp-server"]');
|
||||
console.log(' "command": "node",');
|
||||
console.log(` "args": ["${process.cwd()}/dist/index.js"]`);
|
||||
console.log(' }');
|
||||
console.log(' }');
|
||||
console.log(' }\n');
|
||||
console.log('3. MCP Inspectorでテスト:');
|
||||
console.log(' npx @modelcontextprotocol/inspector npx @ticktick-ecosystem/mcp-server\n');
|
||||
console.log('4. MCP Inspectorでテスト:');
|
||||
console.log(' npx @modelcontextprotocol/inspector node dist/index.js\n');
|
||||
console.log('これで実際のTickTickデータでAI支援のタスク管理が可能になります!');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue