{"$schema":"https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json","name":"dev.sunfield/sunfield","title":"Sunfield — Headless Blender Sandboxes & OptiX GPU Rendering","version":"0.3.0","description":"Stateful headless Blender 4.5 GPU sandboxes, sub-second multi-view visual & spatial inspection (RGB, depth, normals, wireframe, segmentation, BVH collisions), 149 CC0 Poly Haven assets with VLM contact sheets, and elastic Cycles OptiX rendering for AI agents.","protocolVersion":"2025-03-26","homepage":"https://sunfield.dev/","documentationUrl":"https://sunfield.dev/mcp-server","provider":{"name":"Strange Metal, Inc.","url":"https://strangemetal.org","email":"contact@strangemetal.org"},"remotes":[{"type":"streamable-http","url":"https://sunfield.dev/mcp","headers":[{"name":"Authorization","description":"Optional when using OAuth 2.1 + PKCE discovery; otherwise pass Bearer sunfield_sk_... (instant $1.00 free trial at https://sunfield.dev/start)","isRequired":false,"isSecret":true,"format":"Bearer sunfield_sk_..."}]}],"authentication":{"type":"oauth2","supportedMethods":["oauth2_pkce","bearer"],"authorizationServerMetadata":"https://sunfield.dev/.well-known/oauth-authorization-server","protectedResourceMetadata":"https://sunfield.dev/.well-known/oauth-protected-resource","header":"Authorization","prefix":"Bearer ","signupUrl":"https://sunfield.dev/start","signupEndpoint":"https://sunfield.dev/v1/signup"},"capabilities":{"tools":{"listChanged":false},"resources":false,"prompts":false},"tools":[{"name":"sunfield_balance","description":"Return the current Sunfield account credit balance (USD) and recent double-entry ledger items.","inputSchema":{"type":"object","properties":{}}},{"name":"sunfield_search_assets","description":"Search Sunfield's 100% CC0 Poly Haven asset library (HDRIs, PBR materials, 3D models). Set contact_sheet=true to receive a labeled JPEG visual grid directly in the tool output.","inputSchema":{"type":"object","properties":{"query":{"type":"string","default":"","description":"Search keywords (e.g. 'studio', 'oak wood', 'brass')"},"kind":{"type":"string","enum":["hdri","material","model"]},"category":{"type":"string"},"max_tris":{"type":"integer","minimum":1},"limit":{"type":"integer","default":9,"minimum":1,"maximum":24},"contact_sheet":{"type":"boolean","default":true}}}},{"name":"sunfield_stage_assets","description":"Mount 1..24 CC0 assets into a live Blender session and return ready-to-run bpy_snippet helpers.","inputSchema":{"type":"object","required":["session_id","asset_ids"],"properties":{"session_id":{"type":"string"},"asset_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":24}}}},{"name":"sunfield_create_session","description":"Claim a warm isolated headless Blender 4.5 GPU sandbox ($0.25 refundable hold).","inputSchema":{"type":"object","properties":{"preset":{"type":"string","enum":["studio","empty","default"],"default":"studio"},"pool":{"type":"string","enum":["interactive","cycles"],"default":"interactive"}}}},{"name":"sunfield_list_sessions","description":"List active and recent Blender sandbox sessions for the authenticated account.","inputSchema":{"type":"object","properties":{}}},{"name":"sunfield_exec","description":"Execute Python (`bpy`) code inside a live session. Globals persist across calls, tmpfs checkpoints auto-recover crashes/timeouts, and load_hdri/load_glb/load_pbr helpers are pre-injected.","inputSchema":{"type":"object","required":["session_id","code"],"properties":{"session_id":{"type":"string"},"code":{"type":"string"},"timeout_s":{"type":"number","default":30.0},"checkpoint":{"type":"boolean","default":true}}}},{"name":"sunfield_inspect","description":"Render fast multi-view EEVEE or Cycles previews + spatial telemetry (bounds, framing, BVH collision penetration_depth, floating_objects) returning native image blocks.","inputSchema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string"},"views":{"type":"array","items":{"type":"string"},"default":["camera","iso_3q"]},"passes":{"type":"array","items":{"type":"string"},"default":["rgb"]},"width":{"type":"integer","default":512},"height":{"type":"integer","default":512},"engine":{"type":"string","enum":["eevee","cycles"],"default":"eevee"},"cycles_samples":{"type":"integer","default":16},"summary_only":{"type":"boolean","default":false},"include_images":{"type":"boolean","default":true}}}},{"name":"sunfield_checkpoint","description":"Save, list, or restore lightweight named tmpfs undo checkpoints (<20ms).","inputSchema":{"type":"object","required":["session_id","action"],"properties":{"session_id":{"type":"string"},"action":{"type":"string","enum":["save","list","restore"]},"name":{"type":"string"}}}},{"name":"sunfield_fork","description":"Branch a live session into 1..8 independent child sessions for parallel exploration.","inputSchema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string"},"count":{"type":"integer","default":2,"minimum":1,"maximum":8}}}},{"name":"sunfield_estimate_render","description":"Run a two-point warm Cycles differential cost probe without committing to a full render.","inputSchema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string"},"samples":{"type":"integer","default":128},"width":{"type":"integer","default":1024},"height":{"type":"integer","default":1024},"frames":{"type":"array","items":{"type":"integer"},"default":[1]}}}},{"name":"sunfield_render","description":"Burst-render photorealistic or AOV frames on Cycles OptiX GPUs behind a hard max_cost_usd cap. Automatically shards multi-frame jobs across idle Pool B GPUs; use async_mode=true for >30s renders.","inputSchema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string"},"engine":{"type":"string","enum":["cycles","eevee"],"default":"cycles"},"samples":{"type":"integer","default":64},"width":{"type":"integer","default":1024},"height":{"type":"integer","default":1024},"frames":{"type":"array","items":{"type":"integer"},"default":[1]},"aov_passes":{"type":"array","items":{"type":"string"},"default":["rgb"]},"max_cost_usd":{"type":"number","default":1.0},"async_mode":{"type":"boolean","default":false}}}},{"name":"sunfield_get_job","description":"Poll live progress, rendered artifacts, archive_url, and video_url for an async render job.","inputSchema":{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string"}}}},{"name":"sunfield_stash","description":"Save, list, mount, or delete account-scoped .blend/.glb assets in server-side Stash so parallel builder sessions can share scenes with a manager session without client round-trips.","inputSchema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["save","list","mount","delete"]},"session_id":{"type":"string","description":"Required for save and mount actions."},"name":{"type":"string","description":"Asset name for save or delete (e.g. 'repair_stall.blend')."},"names":{"type":"array","items":{"type":"string"},"description":"Stashed asset names to mount into session files/ (for mount)."},"format":{"type":"string","enum":["blend","glb"],"default":"blend"}}}},{"name":"sunfield_topup","description":"Create a Stripe Checkout link to add non-expiring GPU credits ($10, $25, $100, or $500) to the authenticated account. Works for both OAuth 2.1 MCP sessions and Bearer API keys; return the checkout_url to the user when balance is low or a 402 InsufficientCredits error occurs.","inputSchema":{"type":"object","properties":{"pack_usd":{"type":"integer","enum":[10,25,100,500],"default":25,"description":"Prepaid credit pack amount in USD (10, 25, 100, or 500)."}}}},{"name":"sunfield_close_session","description":"Close a Blender sandbox session, settle exact active GPU-seconds, and refund the unused hold.","inputSchema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string"}}}}],"icons":[{"src":"https://sunfield.dev/favicon.svg","mimeType":"image/svg+xml"},{"src":"https://sunfield.dev/icon-512.png","mimeType":"image/png","sizes":"512x512"}]}