Roo 活动日志记录器 logo

Roo 活动日志记录器

Community
annenpolka

An MCP server for logging activity in Roo Code/Cline.

Publisherannenpolka
Repositoryroo-logger
LanguageTypeScript
Forks
5
Stars
25
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Roo 活动日志记录器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    25 stars and 5 forks from the linked repository.

Roo Activity Logger

日本語版はこちら | 中文版

TL;DR

  • What is it? — This is an MCP server that automatically logs AI coding assistant activities such as command executions and code generation (supports Roo Code, Cline, Claude Code, etc.).
  • What does it do? — It saves activity history as JSON files, which you can search and analyze later.
  • How do I use it? — Add it to your Claude Code, Cline, or Roo-Code settings to enable automatic activity logging.

Overview

Roo Activity Logger is an MCP (Model Context Protocol) server that automatically records AI coding assistant development activities — including command executions, code generation, file operations, and more. It supports Claude Code, Cline, Roo-Code, and other MCP-compatible AI assistants. All logs are saved in JSON format, making it easy to search, analyze, and restore context at any time.

How activity logging works

How to search logs and restore context when resuming a task

Sample Log Entry

Here is an example of a file_operation log entry saved as JSON:

json
{
  "id": "75add15d-8d5b-4e60-b327-fde785050c86",
  "timestamp": "2025-04-10T01:58:02.905Z",
  "type": "file_operation",
  "level": "info",
  "summary": "Inserted mermaid diagram into README.md",
  "details": {
    "file": "README.md",
    "operation": "insert_content",
    "insertedLines": "mermaid code block",
    "position": "after overview section"
  },
  "intention": "To visually explain the flow of saving and retrieving activities",
  "context": "Improving documentation for Roo Activity Logger",
  "parentId": "98280366-1de1-48e0-9914-b3a3409599b4"
}

Each log contains:

  • Log level (debug, info, warn, error)
  • Summary
  • Details (any structured data)
  • Intention / Purpose
  • Context information
  • Parent activity ID (for hierarchy)
  • Sequence number (for ordering)
  • Related activity IDs (for grouping)

Logs are:

  • Saved as date-based JSON files
  • Searchable by type, level, date, text, etc.
  • Customizable — you can specify different save directories per activity

Features

  • Logs various activity types:

    • Command executions (command_execution)
    • Code generation (code_generation)
    • File operations (file_operation)
    • Errors (error_encountered)
    • Decisions (decision_made)
    • Conversations (conversation)
  • Each activity log includes:

    • Unique ID
    • Timestamp
    • Activity type
    • Summary, details, intention, context, and optional metadata

Usage (Recommended: via npx)

You can run Roo Activity Logger directly without cloning the repository by using npx.

Add this to your Cline, Roo-Code, or Claude Code configuration:

json
{
  "mcpServers": {
    "roo-activity-logger": {
      "command": "npx",
      "args": ["-y", "github:annenpolka/roo-logger"],
      "env": {},
      "disabled": false
    }
  }
}

Then, add prompts to your rule files (for Cline/Roo-Code) or CLAUDE.md (for Claude Code) to ensure logging, for example:

md
## Important

Always log activities using roo-activity-logger according to the logging rules.

## Preparation

Check the current context with `git status`.

Then, use roo-activity-logger's `search_logs` to review existing logs and identify current tasks.

Be sure to perform the logging steps.

## Logging

- Always use roo-activity-logger for all logs
- Include stack traces and execution context
- Record intention and context

For Developers: Local Setup

To develop or customize locally, clone the repository and build:

bash
# Clone the repo
git clone https://github.com/annenpolka/roo-logger.git
cd roo-logger

# Install dependencies
npm install

# Build
npm run build

Example configuration to use your local build:

json
{
  "mcpServers": {
    "roo-activity-logger": {
      "command": "node",
      "args": ["/path/to/your/local/roo-logger/dist/index.js"], // adjust path accordingly
      "env": {},
      "disabled": false
    }
  }
}

Notes

  • The specified directory will be created automatically if it does not exist.

MCP Tools

log_activity — Record an activity

A tool to record an activity.

Basic example

json
{
  "type": "command_execution",
  "summary": "Run npm command",
  "intention": "Update project dependencies",
  "context": "Preparing for new feature development",
  "logsDir": "/absolute/path/to/logs/activity"
}

Parameters

NameRequiredTypeDescription
typeYesstringActivity type (command_execution, code_generation, file_operation, error_encountered, decision_made, conversation)
summaryYesstringShort summary of the activity
intentionYesstringPurpose or intention
contextYesstringContext information
logsDirYesstringSave directory (absolute path only)
levelNostringLog level (debug, info, warn, error). Default: info
detailsNoobjectAdditional details (any JSON)
parentIdNostringParent activity ID
sequenceNonumberSequence number
relatedIdsNostring[]Related activity IDs

Detailed example

json
{
  "type": "file_operation",
  "summary": "Update README file",
  "intention": "Clarify documentation and improve usability",
  "context": "Improvements based on user feedback",
  "level": "info",
  "details": {
    "file": "README.md",
    "operation": "update",
    "changedLines": 15
  },
  "logsDir": "/absolute/path/to/logs/activity",
  "sequence": 3,
  "relatedIds": ["11223344-5566-7788-99aa-bbccddeeff00"]
}

get_log_files — List saved log files

Lists saved log files recursively. You can specify the maximum search depth.

Basic example

json
{
  "logsDir": "/absolute/path/to/logs"
}

Parameters

NameRequiredTypeDescription
logsDirYesstringDirectory to search (absolute path only)
limitNonumberMax files to retrieve (default: 10)
offsetNonumberNumber of files to skip (default: 0)
logFilePrefixNostringLog file prefix (default: "roo-activity-")
logFileExtensionNostringLog file extension (default: ".json")
maxDepthNonumberMax directory depth (default: 3)

search_logs — Search saved logs

Searches saved logs with various filters.

Basic example

json
{
  "logsDir": "/absolute/path/to/logs"
}
json
{
  "logsDir": "/absolute/path/to/logs",
  "type": "command_execution"
}

Parameters

NameRequiredTypeDescription
logsDirYesstringLog directory (absolute path only)
logFilePrefixNostringLog file prefix (default: "roo-activity-")
logFileExtensionNostringLog file extension (default: ".json")
typeNostringFilter by activity type (command_execution, code_generation, file_operation, error_encountered, decision_made, conversation)
levelNostringFilter by log level (debug, info, warn, error)
startDateNostringStart date (YYYY-MM-DD)
endDateNostringEnd date (YYYY-MM-DD)
searchTextNostringSearch text in summary or details
limitNonumberMax logs to retrieve (default: 50)
offsetNonumberNumber of logs to skip (default: 0)
parentIdNostringFilter by parent activity ID
sequenceFromNonumberSequence number lower bound
sequenceToNonumberSequence number upper bound
relatedIdNostringFilter by related activity ID
relatedIdsNostring[]Filter by any of related activity IDs

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "annenpolka-roo-logger": {
      "command": "npx",
      "args": [
        "-y",
        "roo-activity-logger"
      ]
    }
  }
}

Use Roo 活动日志记录器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Roo 活动日志记录器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Roo 活动日志记录器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Roo 活动日志记录器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "annenpolka-roo-logger": {
      "command": "npx",
      "args": [
        "-y",
        "roo-activity-logger"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Roo 活动日志记录器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Roo 活动日志记录器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Roo 活动日志记录器 to help me with this task?
Roo 活动日志记录器
Sure. I read it.
Here is what I found using Roo 活动日志记录器.

Frequently asked questions

What is the Roo 活动日志记录器 MCP server used for?

Roo 活动日志记录器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Roo 活动日志记录器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Roo 活动日志记录器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Roo 活动日志记录器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Roo 活动日志记录器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Roo 活动日志记录器 MCP to TypingMind?

Roo 活动日志记录器 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Roo 活动日志记录器 MCP provide in TypingMind?

Roo 活动日志记录器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Roo 活动日志记录器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Roo 活动日志记录器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇