lima-vm / lima-vm/lima

MCP logging

Open
#4,088 1 comment 0 reactions 0 assignees View on GitHub
area/mcp enhancement
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

I think it would be useful of have logs of the MCP traffic:

Whenever `limactl mcp serve` starts, it would create a timestamped log file that will contain all the requests and responses for this session.

`limactl mcp logs` should provide a list of all available sessions.

`limactl mcp log LOGFILE` will print the specified logfile to STDOUT.

Open questions:

* Where should the logs be stored? Maybe we should define how Lima plugins are supposed to store logs? `$LIMA_HOME/_plugins/mcp/...`?

* How are logs being pruned?

* Should we have additional metadata at the start of the file (as a single JSON object)?

```json
{"instance":"default","cwd":"/Users/jan/project","mounts":["/Users/jan/go"]}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.