Skip to content

Pleasanter User Manual

Overview

You can view MCP logs output to the database in Pleasanter.

Prerequisites

  1. To enable log output, you need to set the EnableLoggingToDatabase parameter in the configuration file "McpServer.json" to true.

Limitations

  1. Only privileged users can use this feature.
  2. Records cannot be updated.
  3. The displayed columns cannot be changed.
  4. Logs are displayed in descending order by creation date and time; custom sorting is not available.
  5. You must specify at least one "Filter" condition. If no condition is specified, clicking the "Filter" button will not display any logs.
  6. The export format cannot be changed.
  7. Export outputs logs matching the specified conditions among the records displayed after clicking the "Filter" button.

Viewing MCP Logs

When a privileged user opens the following URL, the MCP log list screen is displayed.

http(s)://{ServerName}/{Path}/mcplogs

MCP log list screen

  1. {Path} may be omitted depending on the environment.
  2. The {ServerName} and {Path} may differ depending on the setup.
  3. Check the URL you are actually using and modify it accordingly.
  4. The following are example URLs for each environment.
Environment ServerName Path Example URL
Community Edition
Enterprise Edition
localhost None http://localhost/mcplogs
Pleasanter.net pleasanter.net fs https://pleasanter.net/fs/mcplogs

Configuring Filters

When you configure filters at the top of the MCP log list screen, logs matching the conditions are displayed as records. After setting the conditions, click the Filter button.

MCP log list screen with filters configured at the top

Clicking a log record row displays the details in a single-record view. Note that records are read-only and cannot be updated, deleted. Clicking the Previous/Next buttons allows you to navigate between adjacent logs.

Details of one MCP log record shown in a single-record view

Information Output to MCP Logs

The following information is output to MCP logs:

DB Column Name MCP Log Screen Field Name Description
McpLogId MCP Log ID Management number for the MCP log (assigned automatically)
StartTime Start Date/Time Timestamp when the following started:
・A specific event
・A tool call
・An exchange with the server
EndTime End Date/Time Timestamp when the following ended:
・A specific event
・A tool call
・An exchange with the server
McpRequestId MCP Request ID Management number for the MCP request (assigned automatically)
McpSessionId MCP Session ID Management number for the MCP session (assigned automatically)
McpMethod MCP Method Method used in the request
TargetName Target Name Tool name or prompt name used in the request
UserId User Pleasanter user ID associated with the API key
ApiKeyPrefix API Key Prefix First 16 characters of the API key
Elapsed Elapsed Time Difference between Start Date/Time and End Date/Time
Status Status HTTP status code
JsonRpcErrorCode JSON-RPC Error Code JSON-RPC error code (negative value indicates an error)
ErrMessage Error Message Error message body in JSON format
RequestData Request Data Request body in JSON-RPC format
ResponseData Response Data Response body in JSON-RPC format
UserHostAddress Client IP IP address of the client
UserAgent User Agent User agent name
Ver Version Version

Maximum Number of Records Displayed

The maximum number of records displayed on the MCP log list screen can be configured using the LogExportLimit parameter in the configuration file "McpServer.json". LogExportLimit sets the maximum number of records displayed after filters are applied. It is not a parameter that sets an upper limit on the number of records in the database.

Exporting MCP Logs

  1. Display the MCP logs you want to export by following the steps in "Viewing MCP Logs" above.
  2. Click the "Export" button in the command button area.
  3. In the dialog that appears, select the character encoding and click the "Export" button.

Deleting MCP Logs

MCP log deletion is performed by a background service. For details, refer to the configuration file "BackgroundService.json".