Skip to main content
Glama

AI Conversation Logger

by fablefang
simple-auto-log.js905 B
#!/usr/bin/env node import { execSync } from 'child_process'; import { basename } from 'path'; const projectDir = process.cwd(); const projectName = basename(projectDir); console.error(`Auto-logging conversation for project: ${projectName}`); try { // 简单记录一条测试消息 const logData = { project: projectName, userInput: "自动记录测试 - " + new Date().toISOString(), aiResponse: "Hook 脚本已执行 - " + new Date().toISOString(), platform: "claude-code", tags: ["auto-logged", "hook-test"], actions: ["Hook execution test"] }; const command = `claude mcp call conversation-logger log_conversation '${JSON.stringify(logData)}'`; console.error('Executing:', command); const result = execSync(command, { encoding: 'utf8', stdio: 'pipe' }); console.error('Result:', result); } catch (error) { console.error('Error:', error.message); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fablefang/ai-conversation-logger-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server