Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(routes): point API key, selfie, marketplace analytics and avatar links at their canonical pages with 301s for the old paths

nirholas3efdc6985269
diff --git a/api/_mcp/prompts.js b/api/_mcp/prompts.js
index 3a4a9e4ac..ac2e9d07e 100644
--- a/api/_mcp/prompts.js
+++ b/api/_mcp/prompts.js
@@ -124,7 +124,7 @@ export const PROMPTS = [
'',
numbered([
`Call ${ctx.tool('getting_started')} and summarize in three lines what this server can do.`,
- `Read ${ctx.resource('three://me')}. If it says I am not signed in, explain how to connect with OAuth or an API key from ${ORIGIN}/dashboard/api-keys, then stop.`,
+ `Read ${ctx.resource('three://me')}. If it says I am not signed in, explain how to connect with OAuth or an API key from ${ORIGIN}/dashboard/api, then stop.`,
ctx.hasResource('three://agents') && `Read ${ctx.resource('three://agents')} and list my agents by name with their Solana address.`,
`Suggest the single best next step for me from these guided prompts: ${next.join(', ')}.`,
]),
@@ -572,7 +572,7 @@ const UNATTENDED_PROMPTS = [
const accountTools = ['list_my_agents', 'create_agent', 'recall'].filter((n) => ctx.has(n)).map((n) => ctx.tool(n));
const account = accountTools.length
? `Signed in, this connector also manages the account's agents with ${accountTools.join(', ')} and more. It can never move funds.`
- : "To also manage a three.ws account's agents, reconnect with a connector API key from https://three.ws/dashboard/api-keys or sign in with OAuth 2.1.";
+ : "To also manage a three.ws account's agents, reconnect with a connector API key from https://three.ws/dashboard/api or sign in with OAuth 2.1.";
const guided = UNATTENDED_PROMPTS.filter((p) => p.name !== 'agent-get-started' && p.available(ctx)).map((p) => `\`${p.name}\``);
return [
'Tell me what three.ws can do for an autonomous agent like you, then run one small real example so I see the links.',
diff --git a/api/_mcp/resources.js b/api/_mcp/resources.js
index 23530fa1c..1bbd108b5 100644
--- a/api/_mcp/resources.js
+++ b/api/_mcp/resources.js
@@ -72,7 +72,7 @@ function assertAccess(def, auth, uri) {
if (!auth?.userId) {
throw rpcError(AUTH_REQUIRED, `${uri} is account data: sign in with three.ws OAuth or an API key to read it`, {
uri,
- hint: 'Connect this server with OAuth, or send Authorization: Bearer sk_live_... from /dashboard/api-keys.',
+ hint: 'Connect this server with OAuth, or send Authorization: Bearer sk_live_... from /dashboard/api.',
});
}
throw rpcError(AUTH_REQUIRED, `${uri} requires one of these scopes: ${def.access.join(', ')}`, {
diff --git a/docs/ibm-community-long-running-mcp-tools-post.md b/docs/ibm-community-long-running-mcp-tools-post.md
index 30451f3a6..bf27095e3 100644
--- a/docs/ibm-community-long-running-mcp-tools-post.md
+++ b/docs/ibm-community-long-running-mcp-tools-post.md
@@ -488,7 +488,7 @@ curl -s https://three.ws/api/mcp -H 'content-type: application/json' \
```
```json
-{"jsonrpc":"2.0","id":1,"error":{"code":-32001,"message":"three://me is account data: sign in with three.ws OAuth or an API key to read it","data":{"uri":"three://me","hint":"Connect this server with OAuth, or send Authorization: Bearer sk_live_... from /dashboard/api-keys."}}}
+{"jsonrpc":"2.0","id":1,"error":{"code":-32001,"message":"three://me is account data: sign in with three.ws OAuth or an API key to read it","data":{"uri":"three://me","hint":"Connect this server with OAuth, or send Authorization: Bearer sk_live_... from /dashboard/api."}}}
```
`-32001` means "authenticate or grant a scope first"; `-32002` is MCP's "resource not found." Someone else's resource answers exactly like a missing one, "so a URI cannot be used to probe which ids exist."
diff --git a/docs/mcp.md b/docs/mcp.md
index ab2ec82dd..21114ee87 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -1110,7 +1110,7 @@ curl -s https://three.ws/api/mcp \
| jq -r '.result.contents[0].text' | head -20
```
-Account resources need a bearer token (an API key from [/dashboard/api-keys](https://three.ws/dashboard/api-keys) with `agents:read`):
+Account resources need a bearer token (an API key from [/dashboard/api](https://three.ws/dashboard/api) with `agents:read`):
```bash
curl -s https://three.ws/api/mcp \
@@ -1190,7 +1190,7 @@ Where a flow's executing venue (swaps, launches, perps, lending, predictions) is
Goal: learn what a server does and pick the best next step. Server: all four (the first call is the same everywhere).
1. `getting_started()` to summarize what the server can do.
-2. Read `three://me`. If you are not signed in, connect with OAuth or an API key from `/dashboard/api-keys`, then stop.
+2. Read `three://me`. If you are not signed in, connect with OAuth or an API key from `/dashboard/api`, then stop.
3. Read `three://agents` to list your agents with their Solana addresses.
4. Pick a next prompt from the ones the server lists.
diff --git a/pages/companion.html b/pages/companion.html
index 5288169c2..bda941ed7 100644
--- a/pages/companion.html
+++ b/pages/companion.html
@@ -306,7 +306,7 @@
Everyone else is delivered by your default companion.
</p>
</div>
- <a href="/create-selfie?next=/companion" class="btn btn-sm" data-i18n="companion.make_selfie">Make one from a selfie</a>
+ <a href="/create/selfie?next=/companion" class="btn btn-sm" data-i18n="companion.make_selfie">Make one from a selfie</a>
</div>
<div class="card">
<div id="contacts-list"></div>
diff --git a/pages/conversions.html b/pages/conversions.html
index 4c13b668e..51fd8a381 100644
--- a/pages/conversions.html
+++ b/pages/conversions.html
@@ -215,7 +215,7 @@
Prices are the seller's live list price in the mint they chose. Buying happens on the agent's own page,
where the amount and destination are shown before anything is signed. Read
<a href="/tutorials/sell-a-skill-with-a-trial">how a trial converts</a> or see the platform-wide
- <a href="/marketplace-analytics">trial funnel</a>.
+ <a href="/marketplace/analytics">trial funnel</a>.
</p>
</main>
diff --git a/src/ar-page.js b/src/ar-page.js
index b9f6a4c08..fb05bbf7f 100644
--- a/src/ar-page.js
+++ b/src/ar-page.js
@@ -223,7 +223,7 @@ async function generateUsdz(glbUrl) {
function showError(msg, opts = {}) {
const shell = $('ar-shell');
if (!shell) return;
- const { retry = false, browseHref = '/avatars', browseLabel = 'Browse avatars' } = opts;
+ const { retry = false, browseHref = '/gallery', browseLabel = 'Browse avatars' } = opts;
const panel = document.createElement('div');
panel.className = 'ar-error';
panel.setAttribute('role', 'alert');
diff --git a/vercel.json b/vercel.json
index 14530e47c..e813c707f 100644
--- a/vercel.json
+++ b/vercel.json
@@ -2548,6 +2548,34 @@
},
"status": 301
},
+ {
+ "src": "/dashboard/api-keys/?",
+ "headers": {
+ "Location": "/dashboard/api"
+ },
+ "status": 301
+ },
+ {
+ "src": "/create-selfie/?",
+ "headers": {
+ "Location": "/create/selfie"
+ },
+ "status": 301
+ },
+ {
+ "src": "/marketplace-analytics/?",
+ "headers": {
+ "Location": "/marketplace/analytics"
+ },
+ "status": 301
+ },
+ {
+ "src": "/avatars/?",
+ "headers": {
+ "Location": "/gallery"
+ },
+ "status": 301
+ },
{
"src": "/dashboard-classic/memory",
"headers": {