Skip to content

Add an ability to trace requests #561

@tgodzik

Description

@tgodzik

Expected Behavior

User can specify a file to dump information about all requests being sent between MCP server and the client

Current Behavior

I don't think there is a way to do it currently.

Context

We created a (LoggingServletTransportProvider)[https://github.com/scalameta/metals/blob/4980076be9436bb13797f553586d9504c46473d9/metals/src/main/scala/scala/meta/internal/metals/mcp/LoggingServletTransportProvider.scala#L23] which does that, but with the new changes that no longer compiles since there is no public constructor. Using the builder and then composing is also not possible because the methods are protected.

We could upstream the LoggingServletTransportProvider or something along these lines if it makes sense.

This is very useful for debugging potential issues with MCP servers especially when users turn on automatic accept.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions