Skip to content

fix(mecatui): clarify provider onboarding - #1636

Merged
danbarr merged 1 commit into
mainfrom
docs/provider-onboarding
Sep 16, 2026
Merged

danbarr merged 1 commit into
mainfrom
docs/provider-onboarding

Conversation

@danbarr

@danbarr danbarr commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Make the first-session tutorial distinguish provider API access from consumer subscriptions and remote-server login.
  • Document custom provider IDs, default selection, model compatibility checks, and recovery steps.
  • State the provider ID format in the interactive setup prompt and CLI help, with regression coverage.
  • Describe the gateway connection as ToolHive-managed instead of implying that ToolHive is the gateway.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR,
    and the in-PR plan declares **Expected tasks:** 1, a non-placeholder
    **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary
    interface change (None — rationale; workflow-only meta-changes may review process
    docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: Clarifies existing provider setup behavior in the CLI and user documentation without changing provider behavior or a public interface.
  • Decision record: None; no durable architectural decision changes.
  • Human waiver of spine: No
  • Acceptance plan: N/A; Routine documentation and prompt clarification.
  • Human decisions resolved and recorded: N/A; no plan required.
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: Routine work is acceptance-plan exempt.

Interface conformance

  • No runtime, public API, operator configuration, persistence, or trust-boundary interface changes.

Issue relationship

No linked issue.

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Targeted CLI tests:

go test ./cmd/mecatui -run 'TestProviderSetup|TestProviderHelp' -count=1

git diff --check also passes. Full repository gates were not run because the only Go change is provider setup/help copy with focused unit coverage.

Changes

File Change
cmd/mecatui/provider_* Explain and test the custom provider ID grammar in setup and help.
user-docs/mecatui/ Make the first-run checkpoint and provider/model recovery path explicit.
user-docs/features/choose-models.md Separate authentication types and add the custom provider workflow.
user-docs/building/deployment/mecated.md Clarify that ToolHive manages access to an external LLM gateway.

User-facing change

New users can identify which credentials they need, configure valid custom provider IDs, select the custom provider as the embedded default, and diagnose provider/model failures without conflating provider login with remote Mecatl login. The interactive custom-provider prompt now states the accepted ID format.

Special notes for reviewers

This does not fix two underlying product limitations: custom provider setup does not automatically make that provider the embedded default, and model discovery does not guarantee that a later inference request will match the gateway's supported request shape or entitlements.

@JAORMX

JAORMX commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This looks pretty good! But, do we want to sanitize and maybe auto-fix a wrongly given name? Maybe that makes the experience smoother

@danbarr

danbarr commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor Author

This looks pretty good! But, do we want to sanitize and maybe auto-fix a wrongly given name? Maybe that makes the experience smoother

@jhrozek mentioned on Discord that he'd already submitted a PR to at least make the error message more clear (this one goes another step to make the dialog clear up-front). It likely could be smoother, though I'd see that as separate from clarifying docs.

@JAORMX

JAORMX commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This looks pretty good! But, do we want to sanitize and maybe auto-fix a wrongly given name? Maybe that makes the experience smoother

@jhrozek mentioned on Discord that he'd already submitted a PR to at least make the error message more clear (this one goes another step to make the dialog clear up-front). It likely could be smoother, though I'd see that as separate from clarifying docs.

That's ok, I was just saying in case you had some cycles to do that.

I approved this anyways.

@danbarr
danbarr merged commit 77c381a into main Sep 16, 2026
35 checks passed
@danbarr
danbarr deleted the docs/provider-onboarding branch September 16, 2026 15:43
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — 5a8be5ab Deployed Sep 16, 2026 by vercel[bot]
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.

2 participants