Skip to content

mcp: optional resource URL template for UI links #7

Description

@cnvergence

Motivation

Platforms built on kcp usually have a UI. Agents should be able to hand the user a link to the resource they are talking about, but the URL scheme is platform knowledge the generic server cannot have.

Proposal

An optional flag:

--resource-url-template=https://ui.example.com/w/{workspace}/r/{group}/{version}/{resource}/{namespace}/{name}

When set, list and get responses include a url field per item, rendered from the template. Unset means no change to responses. The server stays platform-agnostic, each deployment injects its own scheme through chart values.

Notes

Template variables should cover workspace (name and cluster ID), group, version, resource, namespace and name. Cluster-scoped resources render without the namespace segment.

Activity

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

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