Skip to content

mcp: add missing help resource for delete command#3724

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
cubaseuser123:mcp/add-delete-help-resource
May 15, 2026
Merged

mcp: add missing help resource for delete command#3724
knative-prow[bot] merged 1 commit into
knative:mainfrom
cubaseuser123:mcp/add-delete-help-resource

Conversation

@cubaseuser123
Copy link
Copy Markdown
Contributor

Changes

Hi! I'm new to the repo and was just exploring the codebase. While mapping out the tool-to-resource architecture in pkg/mcp to understand how things work, I noticed a small gap.

Every registered tool in mcp.go has a corresponding func://help/<command> resource for flag discovery (build, deploy, list, etc.). But the delete tool was missing its help resource. It looks like it slipped through the cracks during a previous MCP refactor.

This PR adds it:

  • Registers func://help/delete using the existing newHelpResource factory pattern.
  • Adds the test case to the TestResource_Help suite in resources_test.go.

(Side note: the delete tool has a destructive annotation and a readonly guard, so making its parameters discoverable via --help, I think it feels important for agent interactions.)

Ran the mcp package tests locally and everything passes fine.

/kind cleanup

There is no open issue for this, just something I found while exploring the code. Let me know if there are any changes to make, thanks.

@knative-prow knative-prow Bot added the kind/cleanup Cleanup label May 14, 2026
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 14, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: cubaseuser123 / name: cubaseuser123 (62b25df)

@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos May 14, 2026 07:59
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 14, 2026

Welcome @cubaseuser123! It looks like this is your first PR to knative/func 🎉

@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 14, 2026

Hi @cubaseuser123. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow knative-prow Bot added size/XS 🤖 PR changes 0-9 lines, ignoring generated files. needs-ok-to-test 🤖 Needs an org member to approve testing labels May 14, 2026
@gauron99
Copy link
Copy Markdown
Contributor

/ok-to-test

@knative-prow knative-prow Bot added ok-to-test 🤖 Non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test 🤖 Needs an org member to approve testing labels May 15, 2026
Copy link
Copy Markdown
Contributor

@gauron99 gauron99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label May 15, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 15, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cubaseuser123, gauron99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot added the approved 🤖 PR has been approved by an approver from all required OWNERS files. label May 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.97%. Comparing base (e435a89) to head (62b25df).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3724      +/-   ##
==========================================
+ Coverage   56.95%   56.97%   +0.02%     
==========================================
  Files         181      181              
  Lines       21116    21117       +1     
==========================================
+ Hits        12026    12031       +5     
+ Misses       7866     7862       -4     
  Partials     1224     1224              
Flag Coverage Δ
e2e 35.81% <0.00%> (-0.01%) ⬇️
e2e go 32.42% <0.00%> (-0.01%) ⬇️
e2e node 28.20% <0.00%> (-0.01%) ⬇️
e2e python 32.78% <0.00%> (-0.03%) ⬇️
e2e quarkus 28.34% <0.00%> (-0.01%) ⬇️
e2e rust 27.73% <0.00%> (?)
e2e springboot 26.22% <0.00%> (-0.05%) ⬇️
e2e typescript 28.30% <0.00%> (-0.03%) ⬇️
e2e-config-ci 17.70% <0.00%> (-0.01%) ⬇️
integration 17.27% <0.00%> (-0.04%) ⬇️
unit macos-14 45.05% <100.00%> (+<0.01%) ⬆️
unit macos-latest 45.05% <100.00%> (+<0.01%) ⬆️
unit ubuntu-24.04-arm 45.32% <100.00%> (+<0.01%) ⬆️
unit ubuntu-latest 46.01% <100.00%> (+<0.01%) ⬆️
unit windows-latest 45.10% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@knative-prow knative-prow Bot merged commit 3aa26a2 into knative:main May 15, 2026
69 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. kind/cleanup Cleanup lgtm 🤖 PR is ready to be merged. ok-to-test 🤖 Non-member PR verified by an org member that is safe to test. size/XS 🤖 PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants