-
Notifications
You must be signed in to change notification settings - Fork 50
feat(skills): route osmo-user through MCP or CLI #1324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ethany-nv
wants to merge
1
commit into
main
Choose a base branch
from
ethany/osmo-user-mcp-routing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| # OSMO Interface Routing | ||
|
|
||
| Use this reference to choose and operate one OSMO interface per operation. | ||
| Connected MCP schemas and installed CLI help remain authoritative. | ||
|
|
||
| ## Route contract | ||
|
|
||
| - An assigned interface overrides adaptive selection. Pass that lock to | ||
| delegates. | ||
| - When unassigned, prefer authenticated CLI for a known one-operation read, | ||
| validation, local operation, MCP capability gap, or protected-file secret | ||
| transport. Prefer MCP for supported typed remote writes, recovery, updates, | ||
| or multi-source diagnosis. | ||
| - If neither interface supports the operation, explain and stop. | ||
| - Never use both interfaces for one operation, fall back to raw HTTP, or switch | ||
| after an error, capability gap, or authentication failure. A separate phase of | ||
| an unassigned multi-phase request may choose independently. | ||
| - Verify an ambiguous write on the same route before another authorized write. | ||
|
|
||
| ## Intent mapping | ||
|
|
||
| `—` means the capability is not available through that interface or is not | ||
| documented by this skill. | ||
|
|
||
| | Intent | MCP tool | CLI command | | ||
| | --- | --- | --- | | ||
| | Profile defaults | `osmo_get_profile` | `osmo profile list --format-type json` | | ||
| | Update default pool or bucket | `osmo_set_profile` | `osmo profile set pool <pool>` or `osmo profile set bucket <bucket>` | | ||
| | Search pools or capacity | `osmo_search_pools` | `osmo pool list --mode free --format-type json` | | ||
| | Per-node resources | `osmo_list_resources` or `osmo_get_resource` | `osmo resource list --pool <pool> --format-type json` | | ||
| | Recent workflows | `osmo_list_workflows` | `osmo workflow list --format-type json` | | ||
| | Workflow status or dashboard link | `osmo_get_workflow` | `osmo workflow query <workflow_id> --format-type json` | | ||
| | Workflow logs or events | `osmo_get_workflow_logs` or `osmo_get_workflow_events` | `osmo workflow logs <workflow_id>` or `osmo workflow events <workflow_id>` | | ||
| | Workflow spec | `osmo_get_workflow_spec` | `osmo workflow spec <workflow_id> [--template]` | | ||
| | Validate workflow YAML | `osmo_validate_workflow` | `osmo workflow validate <file> --pool <pool>` | | ||
| | Submit workflow YAML | `osmo_submit_workflow` | `osmo workflow submit <file> --pool <pool>` | | ||
| | Restart or cancel workflow | `osmo_restart_workflow` or `osmo_cancel_workflow` | `osmo workflow restart <workflow_id>` or `osmo workflow cancel <workflow_id>` | | ||
| | List or inspect apps | `osmo_list_apps`, `osmo_get_app`, or `osmo_get_app_spec` | `osmo app list`, `osmo app info <name[:version]>`, or `osmo app spec <name[:version]>` | | ||
| | Create, update, or submit an app | `osmo_create_app`, `osmo_update_app`, or `osmo_submit_app` | `osmo app create`, `osmo app update`, or `osmo app submit` | | ||
| | Rename or delete an app | `osmo_rename_app` or `osmo_delete_app` | `osmo app rename` or `osmo app delete` | | ||
| | Credential inventory or mutation | `osmo_list_credentials`, `osmo_set_credential`, or `osmo_delete_credential` | `osmo credential list`, `set`, or `delete` | | ||
| | Upload or download local data | — | `osmo data upload` or `osmo data download` | | ||
| | Exec, rsync, port-forward, tags, login, or version | — | Use the matching installed CLI command | | ||
|
|
||
| ## MCP execution | ||
|
|
||
| Use only advertised OSMO MCP tools and current schemas; never invent a tool or | ||
| use raw HTTP. For a workflow status, dashboard, or progress request, call | ||
| `osmo_get_workflow` once with the supplied ID. Fetch logs, events, or spec only | ||
| when needed. | ||
|
|
||
| Read local workflow YAML once and pass its exact text in `workflow_spec`. | ||
| Validation is read-only. For submission, pass exactly one of `workflow_spec` or | ||
| `workflow_id`, preserve pool and priority, pass Jinja overrides as `key=value`, | ||
| set `dry_run=false`, and report the workflow ID. | ||
|
ethany-nv marked this conversation as resolved.
|
||
|
|
||
| Follow MCP error and remediation fields. Retry only an explicitly retryable | ||
| read once. Permission denial means missing access. Do not expose secrets through | ||
| MCP unless the current schema documents redaction and non-retention. | ||
|
|
||
| ## CLI execution | ||
|
|
||
| Use the mapped commands directly and prefer JSON reads. If a required flag is | ||
| not documented, inspect only that subcommand's local `--help` once. On an | ||
| authentication failure, ask the user to run `osmo login` and stop. Retry a | ||
| clearly transient read once; do not change interfaces. | ||
|
|
||
| Never put secrets in commands, responses, shell history, or inline payloads. | ||
| Use owner-protected `--payload-file` inputs when available and never read their | ||
| contents into chat. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.