seller-tool-onboarding
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 3
03 SKILL.md 正文
Seller tool onboarding
You run a Maxplayer seller, and you want your jobs to use a third-party tool. Use this skill in two steps. First route the tool to one option. Then configure that option.
Version. This page matches maxplayer 0.7.3, the version of the source tree that publishes it.
Run maxplayer --version first. A daemon older than 0.5.9 knows neither [[sandbox.held_tools]]
nor [[sandbox.mcp_tools]]. Upgrade it before you continue.
What you need. A seat under [sandbox] mode = "docker"; step 3 of maxplayer-seller-operate
sets that up. For the Holder route, and for every test on this page, you also need a clone of the
source repository:
git clone https://github.com/MakePrisms/maxplayerai.git
cd maxplayerai
git checkout v0.7.3 # the tag that matches `maxplayer --version`
If that tag does not exist yet, stay on main. Every link on this page goes to that repository on
GitHub. The same files are in the clone.
Keep it as a skill (optional). This page works as one file read in context. To keep it as a Claude Code skill, save it as:
skill.md -> ~/.claude/skills/maxplayer-seller-tool-onboarding/SKILL.md
The routes have names, not numbers: Public, Direct token, Proxy swap, Holder, Dedicated machine.
The reference for them is
10-routing-and-options.md.
Read it for the full model. This skill is the actionable guide.
Where each route stands today
- Holder — handled and automated, and wired into the seller daemon. Onboard by config
(
[[sandbox.held_tools]], one entry per tool); proved live through the daemon code on 2026-09-14, with two tools. - Public — handled, but manual. A human installs the tool in the image.
- Direct token — handled, but manual, and its safe delivery is the Proxy swap.
- Proxy swap — handled by configuration (
[[sandbox.mcp_tools]]). Accepted against a real vendor (GitHub) on 2026-09-14. - Dedicated machine — not handled; deferred.
- Browser login — not supported for now.
The model, in one paragraph
The seller is defined by the offering. There is no offering per job. A tool enrols one time and
stays available for the life of the seller daemon. A job gets an endpoint, never a grant. Keep the
credential out of the job container in every route. See
03-scope-correction-GOVERNING.md.
Step 1 — route the tool
Answer these questions in order. Stop at the first match.
- Does the tool need auth at all?
- No → Public. Go to the Public section.
- Yes → question 2.
- Can the vendor issue a job-scoped token that meets all four predicates? No persistent refresh
secret; lifetime fits the job; scoped to the job's resources; revocable or bound to job-close.
- Yes, with evidence → Direct token. Go to the Direct token section.
- No → question 3.
- Does auth travel in one replaceable header, can the client route through the proxy, and are the
request semantics constrainable? Body-dispatched APIs (GraphQL, MCP tool calls) are not
constrainable by path or method alone.
- Yes → Proxy swap. Go to the Proxy swap section.
- No → question 4.
- Must a real CLI or browser hold the login state?
- Yes, a CLI in a container → Holder. Go to the Holder section. This route ships today.
- Yes, but a browser holds the login → Browser login — not supported at this moment. Print the message in the Cross-cutting section and stop.
- Yes, but machine- or hardware-bound → Dedicated machine — not supported at this moment. Go to the Dedicated machine section and print its message.
Never pick a weaker route because its template exists. If the only route left is one that is not supported at this moment, say so plainly and stop; do not improvise a substitute.
Holder (ships today)
Use this for a local CLI with a persistent login that acts on local files. The holder holds the
login; the job reaches it over a private socket; the holder validates each operation and confines
file access. The kit is
crates/maxplayer-tool-kit;
the daemon side is
held_tool.rs.
The seller daemon starts ONE holder container per held tool at boot, attaches each job's socket for
each tool around the job, and stops the holders at shutdown. Each login persists in its holder's
state volume across daemon restarts. A seat holds as many tools as it declares; each has its own
image, credential, holder and socket. Live proof through the daemon code, two tools:
evidence/20260914T103608Z-holder-route-two-tools/.
Configure the offering (the kit config), then the seat.
Part 1 — the offering.
- Copy
seller-tool-config.template.jsonto a new file. - Fill the fields. See the templates README for each field.
- Add one operation per vendor CLI subcommand you offer. Map each subcommand argument to one
parameter, and choose the parameter
kind:job_input_filefor an input path.job_output_filefor an output path.choicefor a closed option set.textfor bounded free text.
- Set
max_output_bytesfor each operation. - Confirm the vendor CLI reads its credential from its own home. It must not take a credential on the command line.
- Run the tests and the demo. See "How to test the Holder".
- Ask a human with authority over the seller account to review the mapping against
03-command-policy-mapping.md.
Part 2 — the holder image and the seat.
-
In the clone, build the kit image. It carries
tool-holderd,holderctland a fakevendor-cli:cd crates/maxplayer-tool-kit docker build -f docker/Dockerfile -t maxplayer-tool-kit:demo . -
Build a holder image with
tool-holderd,holderctland the vendor CLI onPATH. StartFROMthe kit image and add the vendor CLI, or copy the kit's binaries into an image that has the CLI. The kit image itself, with its fakevendor-cli, is the reference and the test double. Its Dockerfile isdocker/Dockerfile. -
Put the vendor credential in a host file, mode 0600, owned by the daemon's user, in the shape the vendor CLI's
loginreads. Never inconfig.toml. -
Add one table per tool to the seat's
config.toml, under a docker[sandbox]. Every path is an absolute host path.server_nameis the MCP server name the agent sees; it must be unique acrossheld_toolsandmcp_tools, and it names the holder container and the job's socket directory.[[sandbox.held_tools]] server_name = "figma" # the agent sees mcp__figma__<operation> image = "my-figma-holder:latest" config = "/ABSOLUTE/path/figma-offering.json" # the offering from part 1 credential_file = "/ABSOLUTE/path/figma-cred.json" # mounted read-only into this holder only # vendor_base_url = "https://vendor.example" # overrides the config JSON's value # vendor_cli = "figma" # the CLI in the image, when not `vendor-cli` # network = "my-tools-net" # the holder must reach the vendor # required = false # true: refuse to boot or run without it [[sandbox.held_tools]] server_name = "jira" image = "my-jira-holder:latest" config = "/ABSOLUTE/path/jira-offering.json" credential_file = "/ABSOLUTE/path/jira-cred.json"Needs Docker Engine 26 or newer: the job's socket reaches its container through a volume subpath mount, and boot probes for it.
-
Restart the seller daemon. Read one boot line per tool.
HEALTHY, enrolled (1 login this start)on the first boot;HEALTHY, resumed the persisted login (no new enrolment)after.UNHEALTHYnames the vendor's answer; withrequired = falsethe seat still serves, without that tool. -
Run a job that uses the tools. The agent sees one MCP server per entry, named by
server_name, whose tools are the operations you declared for it. The job's outputs land in the job's own directory.
What the job container gets, and only that: its workdir at /work, and one socket directory per
tool at /run/holder/<server_name>, each a subpath of that holder's runtime volume. Not a
credential, not a holder's state, not another job's socket. Each holder runs as the job's uid, so
the outputs it publishes are the job's to read.
Safety invariants the holder enforces. Keep them true in any change.
- The holder builds argv in the spec order. It runs no shell.
- The holder resolves a job file path with no-follow opens, in
safeio.rs. - The holder copies an input into a private staging directory. The CLI reads the staged copy.
- The holder publishes an output with a no-follow create. It refuses a symlink at the output name.
- The credential never enters a job container.
- The vendor's own counters are the oracle. The holder's self-report is not evidence.
How to test the Holder
In the clone, through the daemon code, against the kit's fake vendor (needs docker, the kit image
and the sandbox image with tool-mcp-bridge):
cargo test -p maxplayer-core --features wallet,acp --lib -- --ignored --nocapture held_tool::live_tests::live_two_tools
It starts two holders, runs two jobs against both on one enrolment each (one job under egress
containment when MAXPLAYER_HELD_TOOL_LIVE_NETWORK is set), refuses an escape, restarts the holders
and proves both logins resumed. live_a_real_agent adds a real agent turn that calls both tools.
The vendors' counters are the oracle.
The kit alone:
cargo test -p maxplayer-tool-kit
cd crates/maxplayer-tool-kit
docker build -f docker/Dockerfile -t maxplayer-tool-kit:demo .
IMAGE=maxplayer-tool-kit:demo ./docker/demo.sh
The demo writes evidence to evidence/<UTC-timestamp>/. The manifest.json carries a
source-to-build receipt and the built image id.
Public (manual setup)
Use this for a tool that needs no credential. The seller bakes the tool into a custom sandbox image, then points the seat at it. There is no automated adapter, so report the result as manual setup, never as automated onboarding.
Configure it.
- Write a Dockerfile that starts
FROMthe maxplayer sandbox base image, so the image keeps the agent runtime the job needs (node, the ACP adapter, git, CA certs). The base is the published imageghcr.io/makeprisms/maxplayer-sandbox:v0.7.3, the daemon's default when the seat names no image; its tag follows the daemon version. The reference Dockerfile isdocker/maxplayer-sandbox/Dockerfile. - Add the tool in that Dockerfile — a package install, or a copied binary on the
PATH. - Build and tag the image, for example
my-sandbox-with-tool. - Point the seat at it: set
imagein the seat's[sandbox]table. - Confirm the tool needs no credential and no network the egress policy denies. If it needs auth, it is not Public; re-route it.
Direct token (manual setup; its safe delivery is the Proxy swap)
Use this only when the vendor issues a job-scoped, revocable, close-bound token and all four predicates hold with evidence.
Prefer to deliver the token through the proxy, not in the container. Reuse the Proxy swap mechanism: a placeholder in the container, the real token swapped in at egress. The proxy makes the placeholder worthless outside the life of the job, so job-close-binding is ensured for you. Inject a real token into the container only when the proxy cannot mediate the traffic (non-header auth, a signing protocol, or a client that will not route through the proxy), and record the residual leak risk.
What is available today. The proxy delivery above is the Proxy swap route. It is configured by
[[sandbox.mcp_tools]] for a vendor-hosted MCP server, and by [[sandbox.file_credentials]] for a
client that takes a base-URL flag and a token from the environment. The weaker option, a real token
in the container, stays manual setup with the residual leak recorded.
Proxy swap (handled by configuration; accepted against GitHub)
Use this for a vendor-hosted MCP server, or an authenticated HTTP API, whose auth is one header
value. The job holds a per-job placeholder. The credential proxy (#647) swaps the real credential
in at egress, only for the vendor's host, only for the life of the job. The credential file stays on
the host. It is never mounted.
Status (2026-09-14). The wiring is built, green against synthetic fakes, and accepted against
one real vendor: GitHub's remote MCP server, through the real proxy, the real launch, the sandbox
image, and a real agent turn. The bundle is
evidence/20260914T085619Z-github-proxy-swap/;
the account is in
10-routing-and-options.md.
For a NEW vendor, report the onboarding as "configured; accepted for GitHub, not yet for this
vendor" until a run against that vendor passes. A run against a fake proves the mechanism only.
Two shapes, by what the job talks to:
- A vendor-hosted MCP server (GitHub's remote MCP, Figma's) →
[[sandbox.mcp_tools]]. This is the new wiring. Follow the steps below. - A CLI or HTTP client in the job that takes a base-URL flag and a token from the environment
→
[[sandbox.file_credentials]], the existing mechanism (proven on cursor-agent). The client's redirect flag points it at the proxy; the placeholder rides in the named variable. SeeFileCredentialinhome.rs.
Configure a vendor MCP server.
-
Scope the credential at the vendor first: read-only, one repository or one project. The proxy constrains the destination host, not the operations. A broad credential stays broad behind it. If the vendor cannot scope it, stop. That case needs a trusted operation filter (the Holder shape for a remote tool), which is not built.
-
Put the credential in a host JSON file, mode 0600, owned by the daemon's user:
{"token": "<the credential>"}. Use an absolute path. Never put it inconfig.toml, never on an argv. -
Add the table to the seat's
config.toml, under a docker[sandbox]:[[sandbox.mcp_tools]] name = "github" # the MCP server name the agent sees url = "https://api.githubcopilot.com/mcp/readonly" # the vendor's MCP endpoint; GitHub's read-only one credential = { path = "/ABSOLUTE/path/github-mcp.json", field = "token" } # transport = "stdio" # default: the bridge. "http" only for claudePrefer a vendor endpoint that itself limits the operations (GitHub's
/mcp/readonlylists only read tools) when the token is read-only. The endpoint bounds the operations, the token bounds the permissions, the proxy bounds the destination.With egress containment on (
networkset),proxy_port_rangemust be set too. The pinhole is how the job reaches the proxy. -
Restart the seller daemon. Read the boot line:
seller node: [sandbox] mcp_tools: github -> https://api.githubcopilot.com/mcp/readonly through the credential proxy (stdio bridge); credential file /ABSOLUTE/path/github-mcp.json reads. A line that saysUNREADABLEmeans every job would fail to reach the tool. Fix the file first. -
Run a job that uses the tool. Confirm with the vendor's own record (GitHub: the token's last-used time, the repository's access log), not with the job's word.
What the job sees: an MCP server with the configured name, whose command is
/usr/local/bin/mcp-http-bridge with the proxy address, the path and the placeholder as flags. No
environment variable and no file in the container carries the credential. The placeholder starts
with mxp-mcp- and is worthless outside this job: the vendor rejects it, and the proxy forgets it
at job end. The published sandbox image carries the bridge from 0.5.9. A custom job image must start
FROM it, or copy /usr/local/bin/mcp-http-bridge in.
Invariants the wiring enforces. Keep them true in any change.
- The host reads the credential per job and registers it on the proxy with one upstream: the
scheme and host of
url. - The proxy substitutes in header values only, never in the body or the path. For an MCP tool the
swap is scoped to the
Authorizationheader. A placeholder in any other header goes to the vendor as the job wrote it, and a placeholder that appears only outsideAuthorizationis refused at the proxy. - An unreadable credential file fails the launch before any proxy listens. No fallback puts the real value in the container.
- Job end drops the proxy, which revokes the placeholder, open connections included.
- A redirect is followed only to the same origin: scheme, host and port. A redirect from
httpstohttpon the same host is refused. - The proxy does not read the response body for an encoded credential. A vendor that reflects its
Authorizationheader into a body can return the real value in an encoding the byte scrubber does not see. Do not onboard such a vendor on this route.
How to test, synthetically, both halves, in the clone:
cargo test -p maxplayer-tool-kit— the bridge against a fake proxy and a fake vendor (tests/proxy_swap_suite.rs), with SSE, a session id, chunked framing, notifications, two requests in flight at once, and a server request sent mid-stream that the bridge answers while the stream is open.cargo test -p maxplayer-core --features wallet,acp mcp_tool— the config, the session entry, and the real proxy against a stub vendor (seller_exec::mcp_tool_tests).
Neither is third-party acceptance. The live tests are: cargo test -p maxplayer-core --features wallet,acp --lib -- --ignored mcp_tool_tests::live_a and live_b, with the environment the bundle's
README
names. They need docker, the image, egress and a real read-only credential.
Dedicated machine (not supported at this moment)
This is for a login bound to a specific machine or hardware licence, which cannot run in a job container. It is not supported at this moment. If routing lands here, it is the only route left and no other route fits. Print this plainly and stop:
This tool needs a dedicated machine to hold its login, which the platform does not support at this moment. It cannot be onboarded now.
Do not improvise a host executor on the seller's own machine.
Cross-cutting
-
Browser login is not supported at this moment. It fits the Holder only when the login persists and the holder can refresh it without a browser; a short-lived, non-refreshable login would force a per-job re-login the enroll-once model cannot hold. If a tool's only viable route is a browser login, print this plainly and stop:
This tool needs a browser login, which the platform does not support at this moment. It cannot be onboarded now.
-
Refuse a credential store that cannot separate its auth writes from job state. See
08-gaps-and-unsupported.mdC.1.
Evidence rules
State the truth about a run.
- A run against a fake CLI and a fake vendor proves the mechanism only. Both were written for this contract, so they cannot falsify it.
- A run does not prove third-party acceptance or general onboarding acceptance.
- Keep a negative control for each claim. A check that cannot fail is worse than no check.
When it goes wrong
Report a dead end as an issue on https://github.com/MakePrisms/maxplayerai. Name the exact boot line or command output you saw, and the route you chose.
04 同仓库更多 Skills
maxplayer-swarm-join
Join the community swarm once with daily minutes, check persistent acceptance, change minutes, or leave at any time.
maxplayer-seller-operate
Set up and run a Maxplayer seller from nothing — install the binary, sandbox the job agent in a container so a stranger's task text cannot reach your key or your network, first-run `maxplayer seller` with the two required choices, pass the doctor readiness gate, set your rate above the mint fee, and publish the profile that makes buyers able to find you. Explains the execution sentinel that decides whether a delivery gets paid, and the upgrade discipline that keeps a seller claiming — including moving an existing seat onto docker sandboxing, which an upgrade never does for you. Use this to start selling; use maxplayer-debug-selling when a running seller stops working.
muse-buyer
暂无简介
maxplayer-multi-turn-buying
Run one piece of work across MORE THAN ONE paid Maxplayer job — the delivery came back with open questions, a human has to answer something between turns, the job is too big for one turn, or an implementation turn hit an uncertainty it could not decide alone. Covers the QUESTIONS.md file every turn must carry, the two ways to carry the accumulated history forward (text-carried, or repo-backed as a contribution job), the one-way promotion rule between them, and the seller-side rules you paste into the task text. Use this when you already have a funded buyer and a paid delivery in hand; maxplayer-buyer-operate is the skill for installing, funding, and the post_job → get_job → collect mechanics, and this one cites it rather than restating it.
maxplayer-mint-and-trade
Set up a seller's own token mint and token trading together. Use for “set up my mint and token trading” or “issue my own tokens and sell them”. Preserves existing identity and custody, installs both binaries, connects the mint and the maxplayer home, and prepares an approved issuance and listing.
maxplayer-grok-bot-operate
Run Maxplayer from a Grok Bot box — as a buyer over MCP, and as a seller through cursor-agent pinned to a grok model. Grok is an OPERATOR here, not a seller harness (the presets are claude, cursor and codex). Covers what a Grok Bot box is and why it changes the instructions (one shared Linux VM that ships without Docker or systemd), the two-step wallet funding, registering `maxplayer mcp` with an absolute path and an explicit MAXPLAYER_HOME, the launcher sandbox over bubblewrap or docker + gVisor if you install an engine, keeping processes alive without systemd, upgrading (restart `maxplayer mcp` and the buyer daemon too), and the footguns observed on a real box. Read it before your first post_job; use maxplayer-buyer-operate and maxplayer-seller-operate for the full generic paths.