Set Up With Your Agent

Connect your coding agent, configure a real project, and manage ShipFoundry through MCP, the API, or the CLI.

Connect your agent, give it access to the intended project, and let it prepare setup from the repository. You approve the account permissions and provider connections. After setup, the same connection can read recommendations, retrieve tasks and record results.

Start here

  1. Create an account and start a trial, or sign in to your existing account. Dev requires a card. After email confirmation, complete Stripe Checkout to start the seven-day trial. Dev renews at $9/month unless canceled. Portfolio costs $19/month, paid immediately with no trial. Deep Review is a $19/month per-project add-on.
  2. If the dashboard shows Start Your Trial, choose Set Up My Free Trial. Then choose Set Up With Your Agent. Select your client and copy the handoff from the dialog.
  3. Open the product's repository in your agent and paste the handoff. It includes connection commands and this guide.
  4. For API or CLI automation, create a developer key in Agent Access. Existing accounts can also copy an agent handoff there.
  5. Approve GitHub access yourself when requested. GitHub is optional: a selected read-only repository can provide basic profile and stack import, or your agent can submit a product overview and stack context without connecting GitHub. You can also paste package.json with your overview in setup. Both the overview and stack are required before choosing the watchlist. Review and confirm the profile in the browser. Scout uses the confirmed profile and needs no repository. On Portfolio, a selected read-only repository also powers Deep Review checks. Linear is optional.

Prefer the dashboard? Follow Quickstart. You can switch between dashboard and agent workflows on the same project.

Choose a connection

ConnectionBest ForSetup
MCPA coding agent that discovers tools and their input schemasAdd https://shipfoundry.ai/mcp to your client and complete OAuth.
Developer APIScripts, integrations, and agents using HTTPCreate a developer key in Agent Access; send it as a Bearer token to https://shipfoundry.ai/api/v1.
CLITerminal workflows and automationUse bunx @shipfoundry/cli with a developer key.

When a setup handoff specifies a server address, use that address throughout, including for links and API requests. Do not replace it with the production addresses in this guide.

Use one connection for writes. You can read through another to verify the same stored result. Repeating a write through another interface without the same explicit idempotency key can create another action.

OpenCode browser authorization

Check the installed OpenCode version before editing its configuration. V2 uses mcp.servers and timeout objects; older versions use a different format. Preserve unrelated settings. On V2, opencode mcp add shipfoundry --url <handoff-mcp-url> writes the project configuration. Use the exact endpoint from the handoff. See OpenCode MCP documentation.

When an agent starts opencode mcp auth shipfoundry, it must use a persistent background task and read its output while the command remains alive. Open the emitted authorization URL immediately, or present it as a clickable link if browser control is unavailable. Do not wait for the command to finish before giving the user the link: the command cannot finish until browser consent returns to its local callback. Do not kill it with a short shell timeout or launch repeated login attempts while approval is pending. The MCP catalog timeout is separate from this human wait.

If the agent cannot keep a background task alive, ask the user to run /mcps in OpenCode, select ShipFoundry and authenticate there. After consent, the agent checks opencode mcp list and calls get_identity itself before continuing. If the wait expires, report that failure and start one fresh attempt with its new link. Browser consent remains the user's action; routine project and context setup is authorized by the onboarding request. Watchlist additions require one explicit approval of the exact batch and lookback use.

Permissions

In MCP authorization, choose All current and future projects if your agent will create the project. Selecting existing projects limits access to those projects. An older connection with no project access needs fresh authorization; it is not expanded automatically.

To create a new project, the credential needs project:write and access to all current and future projects. A selected-project grant can manage existing permitted projects but cannot create another. Project limits still apply.

Current handoffs are saved as part of matching. Reading or copying one starts no deep generation. Earlier projects may still expose explicit brief-generation operations and their allowance checks.

For setup, start with projects:read and project:write. Reading recommendations needs updates:read; recording decisions and outcomes needs updates:write; requesting briefs needs briefs:write. Add only the permissions your workflow needs. Revoking a credential stops its future access without deleting project history.

API and CLI require an explicitly authorized developer key. MCP OAuth credentials and historical MCP-only keys are not interchangeable with developer keys. Never paste a secret into a chat, repository, issue, or handoff. Use your client's secure credential configuration.

Give this to your agent

# Set up ShipFoundry for this repository

Read https://shipfoundry.ai/docs/agent-setup.md and the guide for our connection.
Use the configured MCP connection or developer credential.
This request authorizes routine project creation or selection, evidence-based context and preparing a relevant watchlist within the plan. Continue those routine steps without asking again. Preview and explain the exact tools and non-renewable lookback allowance, then obtain one explicit batch approval before adding with confirmed:true.

## Check the account

1. Verify account identity, permissions and plan limits.
2. List projects and reuse the one matching this repository, or create it once if none matches.
3. Use this repository as the product. Ask only when multiple products or repositories make the target unclear.

## Prepare project context

1. Use available local project files, manifests, lockfiles and user-confirmed facts to identify the product, full dependency list with declared versions, and package manager. A hosted repository connection is optional.
2. Save an evidence-based name, description and goals. Prepare a relevant watchlist proposal.
3. Separate code evidence from assumptions. Ask about missing business facts.
4. Read existing context and preserve good information.

## Complete setup

1. Use the tool schemas or API guide to save top-level name, summary, goals, constraints, stack and packageManager. Each stack object has name, optional category and optional versionConstraint. Browser agent JSON, MCP and the API/CLI use these same fields. Include the complete dependency list, up to 1,000 entries; oversize input fails instead of silently truncating. Use update_project_context directly when MCP is connected; browser paste is a fallback. For current projects, review and confirm the resulting profile in the web setup. Do not submit legacy repositoryContext or projectKnowledge payloads.
2. If the user chooses GitHub import, open or present the returned direct GitHub consent URL immediately. Poll connections and available repositories read-only after 10 seconds, then 20 seconds, then every 30 seconds for up to five minutes. Once the matching installation and repository access are verified, select the authorized repository. If consent is still pending at the deadline, show the missing state and link, then pause. Do not ask a second consent-completed question while read-only checks can resume setup.
3. Preview the exact supported watchlist batch and allowance. Show the tools and consequences, obtain one explicit batch approval, then add with confirmed:true within plan limits.
4. Check setup status and explain any remaining action.
5. Profile confirmation and exact watchlist approval belong to the customer. Browser approval starts the first review; the Dev trial clock already started at successful checkout. If approval was given through the agent, activate only after that explicit approval and only when no review already exists. Resume the same project after approvals; do not stop permanently after context save.
6. Save the activation request ID and follow `processing.domain.requestId` and `processing.domain.status` until that review is completed, degraded, failed or reaches a stated deadline. Setup readiness can already be complete while the review is still running. Do not treat setup completion as review completion or pass an activation request ID to an operation-status tool.

## Continue with recommendations

- Read evidence, questions and any existing brief or packet first.
- Ask before generating a new brief or exporting work.
- Inspect current code before proposing implementation.
- Record only completed work, with evidence, and read back the saved outcome.

## Return

- Project ID and completed setup steps.
- Current processing state and request IDs.
- Remaining actions or errors, with the next step for each.

Keep secrets out of messages and files. Preserve idempotency keys on retries.
Do not purchase, deploy, merge or create external issues without my instruction.

This playbook is also available as Markdown for agents. Use the docs index to discover individual guides, or full documentation when broader context is needed. A separate skill installation is not required.

Agent procedure

  1. Discover. MCP clients initialize the connection, inspect tools/list, then call get_identity and get_usage. HTTP clients read /me and /usage. Verify account identity, project grants and billing readiness before writing. A successful login alone does not mean setup is ready.
  2. Find Or Create. List projects and identify the intended product. If absent and the setup request authorizes creating the matching project, create it once without another confirmation. Retain the returned project ID for every later action.
  3. Describe The Product. Read setup status. Submit summary, goals, useful constraints and stack through update_project_context or PATCH /projects/{id}/context. Review and confirm the imported basic profile in the browser when profileConfirmationRequired is returned. Do not submit legacy repositoryContext or projectKnowledge payloads for current projects or overwrite good existing context merely to repeat onboarding.
  4. Optionally Connect The Repository. The browser setup can continue with a manually confirmed profile and watchlist. For GitHub import, open the direct connection URL returned by repository listing for the owner to complete GitHub consent. List the repositories already authorized to the account and select the intended one. Never guess a repository ID or reuse another account's ID.
  5. Choose The Watchlist. Read the project's suggested and selected items and lookback allowance. Preview the exact proposed batch with manage_watchlist action list plus recommendationIds (API: GET /projects/{id}/watchlist?recommendationIds=<comma-separated-IDs>). Show the tool names, proposed grant count, remaining allowance, and any forward-only items. Obtain one explicit approval of that batch and its non-renewable lookback use shown by the preview before adding with confirmed: true. Generic permission to complete routine setup does not approve an unseen batch. Removing or swapping tools does not refund their grants. Preview reads reserve nothing; the mutation checks current usage again. For missing items, offer to submit coverage requests through request_stack_tracking, then report their saved status separately from active tracking. Removing tracking preserves existing history.
  6. Finish Activation. Check setup and processing status. Explain that activation starts the first review and can consume the account's allowance. After owner approval, call request_activation with confirmed: true, or POST /projects/{id}/activation with the same confirmation and a stable idempotency key. Save its request ID, inspect the returned dispatch state, then poll project processing status with a deadline. Match processing.domain.requestId to the saved request and follow processing.domain.status: in_progress is running; completed, degraded and failed are terminal outcomes. Report partial results or failures honestly. setupState and readiness.isComplete describe setup, which may already be complete while the review runs. An activation request ID is not a brief operation ID. Admission or dispatch is not a completed review.
  7. Work An Update. Read the update, its qualifying opportunities, current question and stored handoff. Answer with a returned option when a project fact is needed. Choosing an assessed branch does not run another model. Read the original source and inspect the current codebase before changing code. For earlier projects with an explicit generation operation, obtain approval and retain its operation and idempotency IDs.
  8. Record And Verify. Record investigation or implementation evidence. Marking a brief used is separate from adopting an update. Read the update again to confirm the stored outcome and summarize what remains uncertain.

What needs your approval

The card-required Dev trial starts at successful checkout and covers 30 days of eligible history for seven days. Dev renews at $9/month unless canceled. Portfolio requires payment and has no trial. Paid, active subscriptions cover 180 days for the chosen items, subject to source availability.

Account creation, card-required trial checkout, paid checkout, credential permission approval, and GitHub or Linear consent remain human-controlled. Your agent can prepare the next step and link you to the relevant page, then continue after you finish. First-review activation requires your approval. Reading or copying a saved handoff does not start generation. Explicit generation on earlier project flows requires approval before the agent starts it.

When something blocks progress

  • Grant is none: this means no project access, even with project:write. Do not attempt creation. Start fresh authorization in the MCP client and approve All current and future projects. For an existing OpenCode connection, use opencode mcp logout shipfoundry followed by opencode mcp auth shipfoundry. This is a client OAuth flow, not an action on the Agent Access settings page.
  • Auth command timed out: check connection status and call get_identity. If authenticated with the intended account and grant, continue. Tool discovery alone does not prove authorization.
  • Rejected creation: permission and billing denials are not fixed by changing arguments or idempotency keys. Resolve the denial first. For uncertain network outcomes, keep the original key and payload and check existing projects before retrying.
  • Unmatched stack technology: offer to request coverage. After approval, call shipfoundry.request_stack_tracking with projectId, name, an optional note, confirmed: true and a stable idempotencyKey. Save the returned requestId. Read manage_watchlist with action: "list" to confirm its coverage status. A request does not enable monitoring or start paid work. Keep the item in project context and continue with supported items; never substitute an unrelated catalog entity.
  • GitHub configured but no connections: the server supports GitHub, but this account has not authorized an installation. Complete GitHub consent before selecting a repository.
  • Empty account settings: no custom preferences are stored. The endpoint returns its free-form metadata schema and supports reads only; there are no required preference fields to populate. Project setup uses project context, repository and watchlist operations.

Previously connected clients

If you already connected ShipFoundry, check the saved server address before adding another connection. Reuse the intended connection. On the authorization page, verify the signed-in identity, account and projects. If they are wrong, deny access, sign into the intended account in that browser, and retry. Login success does not guarantee tools are loaded in an existing agent session; reload the connection or start a new session if needed.

Setup errors

  • No projects: verify the account and project grant before creating a project.
  • 403: check scopes, current account role and project grant. Do not request broader access than needed.
  • Billing or quota error: show the limit and link the owner to Billing. Never retry by changing account or bypassing the limit.
  • No recommendations or packet: report the actual processing/readiness state. Do not invent an update or silently start paid work.
  • Failed first review: read get_processing_status and retain the exact processing.domain.requestId. Retry only when that same request has the terminal processing.domain.status of failed. Obtain new owner approval, preserve the saved setup, Product Knowledge and watchlist, then call request_activation with confirmed: true and retryFailed: true using a new stable idempotency key. For the API, send the same values to POST /projects/{id}/activation with a new idempotencyKey. Never retry an unknown or running request, and never create a silent duplicate retry.
  • Uncertain write: retain the request and operation IDs. A reconciliation_required response requires reconciliation, not a new idempotency key.
  • Unsupported operation: describe the missing capability and the exact dashboard step. Tool availability is not proof that the whole workflow completed.

Next guides

Setup Writes And Allowance

OperationConsequenceApproval
Identity, usage, setup status, watchlist list or previewRead only; no grants or work reservedContinue automatically
Save ordinary project contextSaves context; does not consume lookback grantsContinue within the requested setup
Add a watchlist batchActivates selected tools and consumes available non-renewable lookback grantsShow the exact batch and preview, then obtain explicit batch approval
First-review activation or retryAdmits review work and may consume review allowanceExplain and obtain approval
Earlier-flow brief generation or regenerationStarts generation and can consume allowanceExplain and obtain approval
Linear exportCreates an external issueApprove destination and content

For watchlist add, send confirmed: true only after the user approves those tools and consequences. confirmation_required means no selections or grants were changed. Read and approve the proposal, then use a new idempotency key for the newly confirmed payload. After acceptance, retry an identical payload with its original key. A preview is advisory, not a reservation or guarantee of unchanged quota.

Was This Page Useful?

On this page