一个简单的AI记录和查找工作日志的MCP工具
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agent-lynricsy --env AGENT_LOG_DIR='<AGENT_LOG_DIR>' -- npx -y mcp-agentlogs@latest~/.codex/config.toml
[mcp_servers.agent-lynricsy]
command = "npx"
args = ["-y", "mcp-agentlogs@latest"]
env = { AGENT_LOG_DIR = "<AGENT_LOG_DIR>" }
# codex mcp add agent-lynricsy --env AGENT_LOG_DIR='<AGENT_LOG_DIR>' -- npx -y mcp-agentlogs@latest~/.cursor/mcp.json
{
"mcpServers": {
"agent-lynricsy": {
"command": "npx",
"args": [
"-y",
"mcp-agentlogs@latest"
],
"env": {
"AGENT_LOG_DIR": "<AGENT_LOG_DIR>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agent-lynricsy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-agentlogs@latest"
],
"env": {
"AGENT_LOG_DIR": "<AGENT_LOG_DIR>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agent-lynricsy": {
"command": "npx",
"args": [
"-y",
"mcp-agentlogs@latest"
],
"env": {
"AGENT_LOG_DIR": "<AGENT_LOG_DIR>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agent-lynricsy": {
"command": "npx",
"args": [
"-y",
"mcp-agentlogs@latest"
],
"env": {
"AGENT_LOG_DIR": "<AGENT_LOG_DIR>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agent-lynricsy": {
"command": "npx",
"args": [
"-y",
"mcp-agentlogs@latest"
],
"env": {
"AGENT_LOG_DIR": "<AGENT_LOG_DIR>"
}
}
}
}需要的环境变量
AGENT_LOG_DIR
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。