Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ What it doesn't do:

The skill ships with a Cursor rule that points the agent at it. There are no
hooks and no scripts. On Claude Code the plugin also registers the forge MCP
server (`.mcp.json`, `npx -y @reliantlabs/forge@1.5.0 mcp`, a local stdio
server (`.mcp.json`, `npx -y @reliantlabs/forge@1.5.0 agent mcp`, a local stdio
process with no account or key), so the agent can call forge's tools; the
skill itself drives the `forge` CLI (or `npx -y @reliantlabs/forge`).

Expand Down
2 changes: 1 addition & 1 deletion plugins/reliant-forge-deploy/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"mcpServers": {
"forge": {
"command": "npx",
"args": ["-y", "@reliantlabs/forge@1.5.0", "mcp"]
"args": ["-y", "@reliantlabs/forge@1.5.0", "agent", "mcp"]
}
}
}
2 changes: 1 addition & 1 deletion plugins/reliant-forge-deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ deploy and its data are deleted 7 days after its 72 hours end.
anonymous deploys are open.

It has no hooks and no scripts. On Claude Code it registers one MCP server,
`forge`, through `.mcp.json`: it runs `npx -y @reliantlabs/forge@1.5.0 mcp`
`forge`, through `.mcp.json`: it runs `npx -y @reliantlabs/forge@1.5.0 agent mcp`
as a local process on your machine, needs no account or key, and exposes the
same forge commands the CLI does. Installation and what it doesn't do are in the
[repository README](https://github.com/reliant-labs/agent-plugins#reliant-forge-deploy).
Expand Down
4 changes: 2 additions & 2 deletions plugins/reliant-forge-deploy/rules/reliant-forge-deploy.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ the limits and the exit codes. In short:
after the first deploy unless they open the link and sign up (free). Treat
the link like a password and never post it publicly.
- An unclaimed backend has no outbound internet. LLM calls go only through the
Reliant provider: run `forge skill load deploy/llm`, declare
Reliant provider: run `forge agent skill load deploy/llm`, declare
`llm = forge.LLM {runtime = forge.OnHosted {}}` and give the service
`forge.llm_env()`. On an unclaimed deploy those variables stay blank until
the platform enables the in-cluster gateway route, so make a missing key
degrade the feature, never crash the app, and don't promise the user LLM
calls before the deploy is claimed. Never call api.openai.com,
api.anthropic.com or another model API directly from an unclaimed deploy.
- Don't use `--claimable` if the user is signed in (`forge login`, or
- Don't use `--claimable` if the user is signed in (`forge cloud login`, or
`$FORGE_CREDENTIAL_HELPER` is set). Don't retry a throttled deploy in a loop.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Every command below is written as `forge ...`. With npx, write
`npx -y @reliantlabs/forge ...` instead.

**Already signed in?** If `$FORGE_CREDENTIAL_HELPER` is set (inside Reliant,
where you run `reliant forge ...`) or the user has run `forge login`, deploy to
where you run `reliant forge ...`) or the user has run `forge cloud login`, deploy to
their account with plain `forge env deploy prod`, without `--claimable`.
forge refuses `--claimable` for a signed-in user (exit 1).

Expand Down Expand Up @@ -121,7 +121,7 @@ forge scaffold # migrations, CRUD RPCs, handlers, ORM,
forge lint --quiet && go build ./... # must pass
```

Before you write the API, run `forge skill load forge`. It covers the project
Before you write the API, run `forge agent skill load forge`. It covers the project
layout and the rules forge's linters enforce.

Commit what forge wrote so the release records a commit. If the user manages
Expand Down Expand Up @@ -173,7 +173,7 @@ it. For example:
Explain what claiming gets them:

- The deploy moves into their own free Reliant account, so it stops expiring.
They can then deploy updates as themselves (`forge login`, then
They can then deploy updates as themselves (`forge cloud login`, then
`forge env deploy prod` without `--claimable`).
- A static site can stay free: one hosted static site per org is free (each
env's site counts), with a 1 GiB storage cap.
Expand All @@ -199,7 +199,7 @@ a README.
An app that needs an outside API to start won't come up unclaimed. Make that
call lazy or optional, or ask the user to claim first.

**LLM calls.** Run `forge skill load deploy/llm` before you write one. The app
**LLM calls.** Run `forge agent skill load deploy/llm` before you write one. The app
calls Reliant's LLM gateway (the Reliant provider), which speaks the OpenAI and
Anthropic APIs, so the stock SDKs work with no configuration in code:

Expand All @@ -220,7 +220,7 @@ A refusal also has `error_reason`, the stable field to branch on. The deploy
document, the `--plan-only` document and forge's error envelope all use that
name. A refusal also has `next_actions`: the exact commands that get past it,
best first. Use them rather than parsing `error`, within these rules: a
`forge login` is the user's to run, not yours; never sign the user
`forge cloud login` is the user's to run, not yours; never sign the user
out to deploy anonymously, and never rerun a throttled deploy before
`retry_at`.

Expand All @@ -231,11 +231,11 @@ out to deploy anonymously, and never rerun a throttled deploy before
| 4, `claimable_ineligible` | The env doesn't fit the plan (step 6) | Apply the fix each line names, then run `--plan-only` again |
| 4, `claimable_unavailable` | The platform isn't taking anonymous deploys right now (`unavailable_cause`) | Not the project's fault. Tell the user. Retry later, or they can sign in |
| 4, `claimable_throttled` | A rate limit (`throttle_scope`: network, device or platform) | Wait until `retry_at`. **Don't retry in a loop**, and tell the user when it can run |
| 4, `claimable_claimed` | The user already claimed it | `forge login`, then `forge env deploy prod` without `--claimable` |
| 4, `claimable_claimed` | The user already claimed it | `forge cloud login`, then `forge env deploy prod` without `--claimable` |
| any other non-zero | A build, lint or config error in the project | Read the message. forge prints the file, the rule and the fix. Fix it and deploy again |

If forge itself misbehaves (a crash, or an error that contradicts these docs),
`forge report-bug` files a report with the Reliant team. It sends nothing
`forge agent report-bug` files a report with the Reliant team. It sends nothing
unless you run it, and `--dry-run` prints the exact payload first. Tell the
user what happened. (The deploy and `--plan-only` talk to Reliant's control
plane too: see step 4.)
Expand All @@ -254,6 +254,6 @@ plane too: see step 4.)
- Don't run an installer without asking the user. Don't stage with
`git add -A`, and never commit a `.env` file.

More: `forge skill load deploy/static-site` (sites),
`forge skill load deploy/hosting` (the "No account" section), and
More: `forge agent skill load deploy/static-site` (sites),
`forge agent skill load deploy/hosting` (the "No account" section), and
https://docs.reliantlabs.io/forge/deploy-without-an-account.
2 changes: 1 addition & 1 deletion tests/test_reliant_forge_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_mcp_server_is_pinned(self):
args = servers["forge"]["args"]
self.assertEqual(servers["forge"]["command"], "npx")
self.assertRegex(args[1], r"^@reliantlabs/forge@\d+\.\d+\.\d+$")
self.assertEqual(args[2:], ["mcp"])
self.assertEqual(args[2:], ["agent", "mcp"])

def test_readmes_match_mcp_pin(self):
server = json.loads((PLUGIN / ".mcp.json").read_text())["mcpServers"]["forge"]
Expand Down
Loading