GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcp: fix appendBoolFlag to handle explicit false values by Elvand-Lie · Pull Request #3709 · knative/func

Conversation

@Elvand-Lie

@Elvand-Lie Elvand-Lie commented May 12, 2026 •
edited by gauron99
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

appendBoolFlag silently dropped the flag when value was non-nil but false. This meant MCP clients could not explicitly disable boolean flags like --push that may be enabled via func.yaml defaults.

When value is non-nil and false, append flag=false (e.g. --push=false) to allow explicit disabling.

Changes

  • When *value == false, append flag=false instead of dropping the flag

Fixes #3705

Release Note


Docs


Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos May 12, 2026 14:17
@knative-prow knative-prow Bot added size/S 🤖 PR changes 10-29 lines, ignoring generated files. needs-ok-to-test 🤖 Needs an org member to approve testing labels May 12, 2026
@knative-prow

knative-prow Bot commented May 12, 2026

Copy link
Copy Markdown

Hi @Elvand-Lie. 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented May 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.85%. Comparing base (b1635be) to head (af0ff49).
⚠️ Report is 49 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3709   +/-   ##
=======================================
  Coverage   56.84%   56.85%           
=======================================
  Files         185      185           
  Lines       21739    21741    +2     
=======================================
+ Hits        12357    12360    +3     
+ Misses       8131     8130    -1     
  Partials     1251     1251           
Flag Coverage Δ
e2e 35.78% <0.00%> (+<0.01%) ⬆️
e2e go 31.48% <0.00%> (-0.01%) ⬇️
e2e node 27.36% <0.00%> (-0.01%) ⬇️
e2e python 31.84% <0.00%> (-0.01%) ⬇️
e2e quarkus 27.48% <0.00%> (-0.01%) ⬇️
e2e rust 26.90% <0.00%> (-0.01%) ⬇️
e2e springboot 25.45% <0.00%> (+0.01%) ⬆️
e2e typescript 27.45% <0.00%> (-0.02%) ⬇️
e2e-config-ci 28.33% <0.00%> (-0.01%) ⬇️
integration 16.92% <0.00%> (-0.01%) ⬇️
unit macos-14 44.89% <100.00%> (+<0.01%) ⬆️
unit macos-latest 44.89% <100.00%> (+<0.01%) ⬆️
unit ubuntu-24.04-arm 45.11% <100.00%> (+<0.01%) ⬆️
unit ubuntu-latest 45.82% <100.00%> (+<0.01%) ⬆️
unit windows-latest 44.94% <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 Harness.
📢 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added size/M 🤖 PR changes 30-99 lines, ignoring generated files. and removed size/S 🤖 PR changes 10-29 lines, ignoring generated files. labels May 12, 2026
@Elvand-Lie Elvand-Lie mentioned this pull request May 15, 2026
mcp: appendBoolFlag silently drops explicit false values #3705
Closed
@thonmay thonmay mentioned this pull request May 15, 2026
mcp: fix appendBoolFlag to handle explicit false values #3746
Closed
@gauron99

gauron99 commented May 15, 2026

Copy link
Copy Markdown
Contributor

/retest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lkingland

lkingland commented May 18, 2026

Copy link
Copy Markdown
Member

/ok-to-test

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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 18, 2026
@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label May 18, 2026
Elvand-Lie added 2 commits May 18, 2026 17:03
@Elvand-Lie
mcp: fix appendBoolFlag to handle explicit false values
e3cf8c2
appendBoolFlag silently dropped the flag when value was non-nil but false. This meant MCP clients could not explicitly disable boolean flags like --push that may be enabled via func.yaml defaults.

When value is non-nil and false, append flag=false (e.g. --push=false) to allow explicit disabling.

Signed-off-by: [email protected] <[email protected]>
@Elvand-Lie
mcp: add tests for appendBoolFlag and appendStringFlag helpers
af0ff49
Signed-off-by: [email protected] <[email protected]>
@Elvand-Lie
Elvand-Lie force-pushed the fix/mcp-appendboolflag-false branch from 608ce97 to af0ff49 Compare May 18, 2026 11:34
@knative-prow-robot knative-prow-robot removed the needs-rebase Cannot be merged due to conflicts with HEAD. label May 18, 2026
@matejvasek

matejvasek commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

/approve
/lgtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned matejvasek Jun 11, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Jun 11, 2026
@knative-prow

knative-prow Bot commented Jun 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Elvand-Lie, matejvasek

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:
  • OWNERS [matejvasek]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the approved 🤖 PR has been approved by an approver from all required OWNERS files. label Jun 11, 2026
@knative-prow
knative-prow Bot merged commit 47801be into knative:main Jun 11, 2026
41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

@dsimansk dsimansk Awaiting requested review from dsimansk
@jrangelramos jrangelramos Awaiting requested review from jrangelramos

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@matejvasek matejvasek

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mcp: appendBoolFlag silently drops explicit false values

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@Elvand-Lie @gauron99 @lkingland @matejvasek @knative-prow-robot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.