API & MCP

Everything a person can do on Pixelpier, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • GET https://pixelpier.usefulweb.app/api/v1/tools – catalog
  • GET https://pixelpier.usefulweb.app/api/v1/tools/{id} – inputs, output schema, examples
  • POST https://pixelpier.usefulweb.app/api/v1/tools/{id}/calculate – run a tool
  • GET https://pixelpier.usefulweb.app/api/v1/workflows · POST https://pixelpier.usefulweb.app/api/v1/workflows/{id}/run
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Tools on Pixelpier

  • Falling Blocks Placement Solver – Find the best spot for a falling four-cell piece on any board, with optional lookahead. pixelpier_blockfall_solver
  • Arcade Replay Score Checker – Re-run a Pixelpier replay on the real game engine and check the score it really reaches. pixelpier_replay_check
  • Tournament Bracket Maker – Single or double elimination or round robin: seeded brackets, byes, results and downloads. tournament_bracket_maker

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://pixelpier.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: pixelpier_blockfall_solver, pixelpier_replay_check, tournament_bracket_maker
  • Local stdio connector: node src/mcp-stdio.ts
{
  "mcpServers": {
    "usefulweb": { "type": "http", "url": "https://pixelpier.usefulweb.app/mcp" }
  }
}