Skip to content

feat(mcp): report dynamic server health in context - #68

Merged
uvwt merged 1 commit into
uvwt:mainfrom
wylangyue:fix/context-dynamic-mcp-health
Sep 9, 2026
Merged

uvwt merged 1 commit into
uvwt:mainfrom
wylangyue:fix/context-dynamic-mcp-health

Conversation

@wylangyue

Copy link
Copy Markdown
Contributor

Summary:

  • retain a machine-readable last_error_code alongside the existing internal refresh error
  • record environment and refresh failures in dynamic MCP server state
  • expose status, tool_count, and last_error_code through agentdock_context
  • verify idle, ready, and MCP_AUTH_REQUIRED states end to end

This prevents enabled but broken dynamic MCP registrations from being presented as healthy capabilities while keeping raw error messages out of the compact model context.

Dependency:

Validation against the protocol branch:

  • go test ./...
  • go vet ./...

@uvwt
uvwt force-pushed the fix/context-dynamic-mcp-health branch from ddf3ff6 to 159cc8b Compare September 9, 2026 03:24
@uvwt
uvwt marked this pull request as ready for review September 9, 2026 03:24
@uvwt
uvwt merged commit aa91776 into uvwt:main Sep 9, 2026
7 checks passed
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.

2 participants