submit_obs_package
Submit an attached internal repository to OBS as a package build.
build_dependencies optionally names source packages already submitted
for this same authorized build. Their matching target repositories are
and their declared transitive dependencies are searched before the base
distro archive, with explicit providers first. Every transitive provider
keeps the same owner/build/revision/target checks. Repeat the dependency list on each
submission; omitting it restores base-only dependency search. It accepts no project paths or
URLs, refuses self/cyclic dependencies, and preserves native version checks.
build_preferences selects at most 16 positive binary-package providers
when native dependency resolution is ambiguous. Literal names only; version
floors, repositories, targets and native tests remain unchanged. Repeat the
list on each submission; omission clears this tool's previous preferences.
rebuild_policy="local" opts an immutable Debian source with archive-only
build dependencies out of automatic external dependency rebuilds. Every
source submission still compiles/tests natively; publication and exact-source
checks remain required. Omission leaves existing native policy unchanged. Custom source
dependency graphs cannot use this fixed-source policy.
This is the "build on OBS" hop of the goal: you generate software, keep it
in its own git repository, build it here, and then point the live-build
archives at the resulting OBS repository (via
os.custom_obs_packages in config/recipe.json + build_image
-- never by hand-writing config/archives/*).
This tool returns as soon as OBS has accepted the source. It does not
wait for the build. That is on purpose, and it is not a limitation you
should work around: wait_for_app_build can block for up to 1800 s of compile plus
3600 s of publish, which would pin an MCP worker for over an hour and lose
the call outright across a deploy swap. More importantly, waiting is your
decision, not the platform's -- while OBS compiles you can keep authoring
config/, run validation, or prepare the next package. Poll
get_obs_package_status when you want the fact, and read
get_obs_package_log when that fact is a failure. (The short local step
inside this call -- packing your tree into a Debian source package and
uploading it -- stays inline with a bounded source-only deadline (large
offline payloads can take longer than ten minutes), because until it finishes
there is nothing for OBS to report on.)
The revision is resolved against the published bare repository, not your working checkout, so uncommitted or unpublished work is refused: OBS clones what your tenant has published, and a build of code nobody can fetch is not reproducible. The host path of that repository is never accepted from you and never returned to you -- it comes from the authorization record for the repositories attached to this harness session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository": "<repository>",
"package": "<package>"
},
"name": "submit_obs_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Source-package name to build it as. Becomes the OBS package name and the last segment of the project path; use the Debian source package name from your debian/control. | |
| targets | No | Package target ids such as debian-13, ubuntu-24.04, fedora-44. Defaults to the target implied by the build's base image. | |
| build_id | No | Build this package is being made for. Scopes the OBS project to that build, picks the default target from its base image, and records the submission on the build row. | |
| revision | No | Branch, tag, or SHA that must already exist in the published repository. Call publish_internal_repository first. | main |
| repository | Yes | Attached internal repository id, checkout name, or label -- the one holding the source you want built, as returned by list_internal_repositories. | |
| rebuild_policy | No | ||
| build_preferences | No | ||
| build_dependencies | No | ||
| retry_stalled_failed_source | No | Opt in to one failed-only native retry per selected target after confirming this exact Debian source revision; ordinary ownership and package allowance checks remain required. | |
| reconcile_stalled_publication | No | Reconcile only stale successful Debian publication through native project metadata, without resubmitting source; preserves explicit disables, ownership, admission and signature checks. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||