Skip to content

feat(mcp): wire logging, progress, roots and instructions - #922

Open
venkat-raman17 wants to merge 1 commit into
mpfaffenberger:mainfrom
venkat-raman17:feat/mcp-logging-progress-roots
Open

feat(mcp): wire logging, progress, roots and instructions#922
venkat-raman17 wants to merge 1 commit into
mpfaffenberger:mainfrom
venkat-raman17:feat/mcp-logging-progress-roots

Conversation

@venkat-raman17

Copy link
Copy Markdown

Code Puppy consumes MCP tools only. MCPToolset already supports these, so they are enabled by an optional per-server capabilities block in mcp_servers.json.

Logs and progress route into the existing per-server file that /mcp logs reads, so there is no new UI and nothing under command_line/. Progress answers "is this slow tool call hung?", which stdio servers give no signal for today.

Logging and progress default on since they only touch the log file; instructions is opt-in because it costs prompt tokens. Bad config keys fall back to defaults rather than failing startup.

Also adds safe accessors for handshake metadata, which otherwise raise AttributeError until the toolset is entered.

Code Puppy consumes MCP tools only. MCPToolset already supports these,
so they are enabled by an optional per-server `capabilities` block in
mcp_servers.json.

Logs and progress route into the existing per-server file that
`/mcp logs` reads, so there is no new UI and nothing under command_line/.
Progress answers "is this slow tool call hung?", which stdio servers give
no signal for today.

Logging and progress default on since they only touch the log file;
`instructions` is opt-in because it costs prompt tokens. Bad config keys
fall back to defaults rather than failing startup.

Also adds safe accessors for handshake metadata, which otherwise raise
AttributeError until the toolset is entered.

Co-Authored-By: Claude <noreply@anthropic.com>
@venkat-raman17

Copy link
Copy Markdown
Author

@mpfaffenberger , please review the #PR. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant