Skip to main content
Glama
README.md
# Hajimete text and image-to-3D MCP connector

Connect any **stdio MCP client** (including compatible desktop agents) to your Hajimete account. This is a local connector, not a hosted OAuth connector. Node.js 22+ is required.

1. Sign in at https://hajimete3d.com/developers. Create a named access key with a total spending cap. Keys expire after 90 days; copy once and keep private.
2. Add the connector to your MCP client. No install step: `npx` fetches it on first run.

```json
{
  "mcpServers": {
    "hajimete": {
      "command": "npx",
      "args": ["-y", "hajimete-mcp"],
      "env": {
        "HAJIMETE_API_KEY": "YOUR_PRIVATE_KEY",
        "HAJIMETE_UPLOAD_DIR": "/absolute/path/to/character-images",
        "HAJIMETE_DOWNLOAD_DIR": "/absolute/path/to/model-downloads"
      }
    }
  }
}
```

Prefer a manual install? Download https://hajimete3d.com/downloads/hajimete-mcp.zip, unzip, run `npm ci --omit=dev` in the folder and use `"command": "node", "args": ["/absolute/path/to/hajimete-mcp/server.mjs"]` instead.

Both directories must already exist. Only files inside the upload directory can be uploaded; external symlinks are rejected. Downloads have generated names and never overwrite existing files. Store the configuration outside source control or use your client's secret facility. The connector never prints the access key.

## Workflow

Ask the agent: “Upload `my-character.png`, review the 3D quote with me, and after I approve, create and download the model.”

Tools: `quote_artwork`, `create_artwork`, `list_artworks`, `get_artwork`, `get_credits`, `list_images`, `upload_image`, `quote_model`, `create_model`, `list_models`, `get_model`, `download_model`, `delete_image`, `delete_model`.

- Upload PNG or JPEG, max 5,000,000 bytes, 16–4096 pixels per side. Confirm image-use rights. No public URLs or server-side fetching of arbitrary URLs.
- Quote first; it expires in five minutes. Show the user the cost before using `create_model` with `spendApproved: true`.
- Generate a UUID `requestID` once. Always reuse that UUID and quote on retries, even after timeout. Do not automatically switch to a fresh quote/request after an ambiguous result.
- Poll every 15 seconds or slower. Generation continues on the server after the agent disconnects.
- `download_model` saves a real self-contained GLB, authenticated using the same private key.
- Deletion tools require `confirm: "DELETE"`; obtain explicit user approval. Deleting the model does not refund completed generation costs.

## Credits and access

Web, API and MCP use **one wallet**, a shared credit ledger and one failure-refund path. Uploads, lists, quotes, status checks and downloads do not use generation credits. Text-generated images cost 1 credit (standard) or 4 (premium); 3D costs a separate 12 credits. API keys cannot buy credits or administer accounts. The key's total allowance measures net generation charges; failure refunds restore both wallet credits and the allowance. The first 100 accounts that signed in with Google or Apple get 13 one-time sample credits when they create their first API key (one 3D model plus one Standard artwork) in the shared wallet. Buying credits on the website does not increase a key's cap. Revoke/create a key to change the cap. Revoking a key does not cancel an in-flight model.

Keys grant access to all images/models owned by that account, including those created on the website, so use separate Hajimete accounts when you need account-level isolation. No public model URLs are issued.

### Out of credits

When a quote or create fails because credits or the key's allowance are short, the API returns HTTP 402 (or 409 if the shortfall appeared while creating) with a stable `code`, a human `error` and a link. The MCP tool result carries all three in its text, for example `402: Not enough credits (12 needed, balance 0). Buy credits to continue. [insufficient_credits] Buy credits: https://hajimete3d.com/developers#credits (show this link to the user).`

- `insufficient_credits`: the account balance is too low. When purchases are available for the account, `buy_url` leads to https://hajimete3d.com/developers#credits and the message says to buy credits; otherwise both are omitted. Also returns `required` and `balance`.
- `api_key_limit_reached`: this key's remaining allowance is too low for this request (or used up), even if the account has credits. `manage_url` leads to https://hajimete3d.com/developers#key-panel to create a key with a higher limit. Also returns `required` and `key_remaining`.

Show the link to the user and wait; do not retry with a new quote until they confirm.

## Publishing

`npm publish` from this folder (the registry metadata is `mcpName` in `package.json` and `server.json`; keep both versions in step). Then `mcp-publisher publish` for the official MCP registry.

## Tests

`npm test` validates the connector through the official MCP client, including tool discovery, the approval schema and idempotency forwarding.

## Start with a text description

Call `quote_artwork` with `prompt` (10–1,000 characters), `style` (anime, clay, plush, painted or asset) and `quality` (standard or premium). Show the returned exact prompt and cost before calling `create_artwork` with `quoteID`, a UUID `requestID` and `spendApproved: true`.

Creation can take up to 90 seconds. On timeout, reuse the same quote and request ID. Do not silently generate a new paid request. Use `get_artwork` or `list_artworks` to check progress. Interrupted jobs are reconciled on read/retry after three minutes and refunded if unfinished. `list_artworks` accepts `before` for its `nextCursor` pagination.

A succeeded artwork returns `sourceID`: pass it directly to `quote_model`, obtain separate approval for 12 credits, then `create_model` and `download_model`. Images also appear in the website gallery. The authenticated image download endpoint is `/api/v1/artworks/JOB_ID/asset`.

TDQS

A4/5.0

Scored across 14 tools

Disambiguation5/5

Each tool maps to a distinct resource+action pair: images (list/upload/delete), artworks (list/quote/create/get), models (list/quote/create/get/download/delete), plus a single credits reader. The quote-vs-create split is clearly explained as a cost-approval step rather than two ways to do the same thing. An agent can route a request without guessing.

Naming Consistency5/5

All 14 names follow a strict snake_case verb_noun pattern (get_credits, list_images, upload_image, quote_artwork, create_model, download_model, delete_image...). Verbs are reused consistently across resources, so the pattern is predictable and composable.

Tool Count5/5

14 tools sit squarely in the well-scoped range and each earns its place: three resources with their own lifecycle verbs plus one balance reader. There is no filler or near-duplicate tool.

Completeness4/5

Model lifecycle is fully covered (quote, create, list, get, download, delete) and image upload/list/delete plus artwork quote/create/get/list cover the main flows. Gaps remain: no delete_artwork, no way to inspect an uploaded image's conversion state (no get_image), and the path from uploaded image to 3D quote is implied but never stated explicitly in the tool surface.

Maintenance

ActivityMaintained
ResponsivenessOutdated data