Skip to content

feat(KEEP-145): add --org flag for organization override#38

Merged
eskp merged 2 commits intomainfrom
feature/keep-145-org-flag
Mar 25, 2026
Merged

feat(KEEP-145): add --org flag for organization override#38
eskp merged 2 commits intomainfrom
feature/keep-145-org-flag

Conversation

@eskp
Copy link
Copy Markdown
Contributor

@eskp eskp commented Mar 25, 2026

Summary

  • Add --org persistent flag to the root command, making it available on all subcommands
  • When set, the HTTP client sends X-Organization-Id header on every API request, overriding the default org from the API key
  • In MCP serve mode, tool arguments can include organizationId which is forwarded as the X-Organization-Id header per-request
  • All dynamic and static MCP tool schemas now expose organizationId as an optional field

Test plan

  • Verify kh workflow ls --org <id> lists workflows for the specified org
  • Verify kh serve --mcp tools accept and forward organizationId argument
  • Verify existing behavior is unchanged when --org is not provided
  • All existing tests pass, new tests added for flag parsing, HTTP header injection, and MCP org forwarding

Add a persistent --org flag to the root command that sends
X-Organization-Id on all API requests when set. For MCP serve mode,
tool arguments can include organizationId which is forwarded as the
same header per-request.
@eskp eskp requested review from a team, OleksandrUA, joelorzet and suisuss and removed request for a team March 25, 2026 07:01
@eskp eskp merged commit bbd5b76 into main Mar 25, 2026
4 checks passed
@eskp eskp deleted the feature/keep-145-org-flag branch March 25, 2026 12:00
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.

1 participant