Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STDIO extension logging #1409

Open
lily-de opened this issue Feb 27, 2025 · 0 comments
Open

STDIO extension logging #1409

lily-de opened this issue Feb 27, 2025 · 0 comments
Labels
cli enhancement New feature or request ui

Comments

@lily-de
Copy link
Collaborator

lily-de commented Feb 27, 2025

Through the MCP protocol, server logs can be surfaced to the client (in this case, goose). Being able to add logs to an MCP server and then see them in Goose can massively accelerate development.

Docs / code

Protocol Flow for Logging

  1. Capability Negotiation
Client                              Server
  |                                   |
  |        Initialize Request         |
  |--------------------------------->|
  | (includes ClientCapabilities)     |
  |                                  |
  |        Initialize Result         |
  |<---------------------------------|
  | (includes ServerCapabilities     |
  |  with logging: LoggingCapability)|
  |                                  |
  1. Log Level Configuration (Optional)
Client                              Server  |                                   |
  |     logging/setLevel Request      |
  |--------------------------------->|
  |   (sets desired logging level)    |
  |                                  |
  1. Log Message Flow
Client                              Server
  |                                   |
  |   notifications/message           |
  |<---------------------------------|
  | LoggingMessageNotification        |
  | {                                |
  |   level: "info",                 |
  |   logger: "component_name",      |
  |   data: "message"                |
  | }                                |
@lily-de lily-de added enhancement New feature or request ui cli labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request ui
Projects
None yet
Development

No branches or pull requests

1 participant