From 35658dbd80ccc823f3bcde43df7a879dc651a187 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Mon, 19 Oct 2026 18:22:34 -0700 Subject: [PATCH] notepaint: the connector, its tools and the AC link page say notepaint Co-Authored-By: Claude Opus 5.5 --- system/backend/ac-oauth.mjs | 4 ++-- system/netlify/functions/mcp-remote.mjs | 14 +++++++------- system/tests/ac-oauth.test.mjs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/system/backend/ac-oauth.mjs b/system/backend/ac-oauth.mjs index 4d2aa34222..c36a15a415 100644 --- a/system/backend/ac-oauth.mjs +++ b/system/backend/ac-oauth.mjs @@ -7,7 +7,7 @@ // aesthetic.computer is that authorization server. Its link page signs the // person in with the same AC sign-in every AC site uses (the aesthetic Auth0 // tenant, unchanged), and then AC issues its own tokens. Each token names the -// one product (resource) it was linked for, so a Note Paint link can paint and +// one product (resource) it was linked for, so a notepaint link can paint and // read the Braincell wallet and nothing else. sotce-net keeps its own tenant. // // Stored: clients, single-use codes and token hashes (never the tokens), each @@ -20,7 +20,7 @@ export const TOKEN_PREFIX = "act_"; // The products a connector can be linked to. export const RESOURCES = { - "https://notepaint.art/mcp": { name: "Note Paint", home: "https://notepaint.art" }, + "https://notepaint.art/mcp": { name: "notepaint", home: "https://notepaint.art" }, }; const CODE_MS = 10 * 60 * 1000; diff --git a/system/netlify/functions/mcp-remote.mjs b/system/netlify/functions/mcp-remote.mjs index 449a209292..f1c2620805 100644 --- a/system/netlify/functions/mcp-remote.mjs +++ b/system/netlify/functions/mcp-remote.mjs @@ -85,7 +85,7 @@ const TOOLS = [ { name: "notepaint_brains", description: - "List the brains (image models) Note Paint can paint with on notepaint.art, each with its price in Braincells and US dollars. When signed in, also returns the painter's Braincell balance and today's free allowance. Read-only; charges nothing.", + "List the brains (image models) notepaint can paint with on notepaint.art, each with its price in Braincells and US dollars. When signed in, also returns the painter's Braincell balance and today's free allowance. Read-only; charges nothing.", inputSchema: { type: "object", properties: { @@ -100,7 +100,7 @@ const TOOLS = [ { name: "notepaint_paint", description: - "Paint with Note Paint (notepaint.art): one move turns a prompt into a square painting, or repaints an earlier painting from this conversation. Each move spends the painter's AC Braincells (today's free allowance first) — call notepaint_brains to show the price before painting. Requires signing in with an AC account that has a handle.", + "Paint with notepaint (notepaint.art): one move turns a prompt into a square painting, or repaints an earlier painting from this conversation. Each move spends the painter's AC Braincells (today's free allowance first) — call notepaint_brains to show the price before painting. Requires signing in with an AC account that has a handle.", inputSchema: { type: "object", properties: { @@ -307,7 +307,7 @@ function validateKidLisp(source) { async function handleMCPMessage(message, authToken, notePaintOnly = false) { const { method, params } = message; - // notepaint.art/mcp is Note Paint's own connector: its tools only, and an + // notepaint.art/mcp is notepaint's own connector: its tools only, and an // AC sign-in on every request (see handler). if (notePaintOnly) { switch (method) { @@ -506,7 +506,7 @@ function callPreviewKidLisp(args) { }; } -// ── Note Paint (notepaint.art) ── +// ── notepaint (notepaint.art) ── // The tools call the same endpoints as the studio, so pricing, the free // allowance, billing and refunds stay in nopaint-inference.mjs. @@ -519,7 +519,7 @@ const NOTEPAINT_TOOLS = TOOLS.filter((tool) => tool.name.startsWith("notepaint_" // OAuth 2.0 Protected Resource Metadata (RFC 9728), the discovery step of // MCP authorization. aesthetic.computer is the authorization server for the // whole network (backend/ac-oauth.mjs): its link page signs painters in with -// AC, and the act_ token it issues is good for Note Paint alone. +// AC, and the act_ token it issues is good for notepaint alone. const AC_AUTHORIZATION_SERVER = "https://aesthetic.computer"; function notePaintResourceMetadata() { @@ -528,7 +528,7 @@ function notePaintResourceMetadata() { authorization_servers: [AC_AUTHORIZATION_SERVER], scopes_supported: ["openid", "profile", "email", "offline_access"], bearer_methods_supported: ["header"], - resource_name: "Note Paint", + resource_name: "notepaint", resource_documentation: "https://notepaint.art", }; } @@ -569,7 +569,7 @@ async function notePaintRequest(path, authToken, body, timeout = 20000) { }); const result = await response.json().catch(() => ({})); if (!response.ok) - throw new Error(result.error || `Note Paint request failed (${response.status})`); + throw new Error(result.error || `notepaint request failed (${response.status})`); return result; } diff --git a/system/tests/ac-oauth.test.mjs b/system/tests/ac-oauth.test.mjs index a0281d38b4..4462e48c5e 100644 --- a/system/tests/ac-oauth.test.mjs +++ b/system/tests/ac-oauth.test.mjs @@ -132,7 +132,7 @@ test("deny sends access_denied back to the registered redirect", async () => { assert.equal(url.searchParams.get("state"), "xyz"); }); -test("Note Paint accepts a linked token for its own resource only, with the live handle", async () => { +test("notepaint accepts a linked token for its own resource only, with the live handle", async () => { const identity = async (sub) => ({ sub, handle: "painter" }); const authorize = async () => { throw Error("Auth0 must not be asked about act_ tokens"); }; const connector = { resolve: async (bearer) => bearer === "act_good" -- knotmirror 0.0.1