Skip to content

[BUG] Status for secondary/watched tool server resources (Service/MCPServer) are not reflected in cluster #1045

@onematchfox

Description

@onematchfox

📋 Prerequisites

  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue

🎯 Affected Service(s)

Controller Service

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

When adding a "autodiscovered" tool server via a Service/MCPServer resource, the status of the reconciled resource is not reflected in cluster. The reconciliation loop for both secondary resources simply upserts to the controller database. Thus, if an error occurs, the only place to find any information about this is within the controller logs.

🔄 Steps To Reproduce

Add a misconfigured secondary tool server resource (e.g. a Service that has an incorrect kagent.dev/mcp-service-portor kagent.dev/mcp-service-protocol annotation) and attempt to find out why no tools are listed in the UI.

🤔 Expected Behavior

The status of all resources managed by the controller should be reflected within the Kubernetes cluster.

📱 Actual Behavior

No response

💻 Environment

No response

🔧 CLI Bug Report

No response

🔍 Additional Context

This was originally discussed/reported in #812 (comment) but I never got around to actually logging an issue with this until now.

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR to fix this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions