Spaces:
Running
Running
Download tiled-mcp/src/index.ts from 4math/tiled-map-builder: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/4math/tiled-map-builder/resolve/main/tiled-mcp/src/index.ts
- Command line
-
hf download hf://spaces/4math/tiled-map-builder/tiled-mcp/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/4math/tiled-map-builder/resolve/main/tiled-mcp/src/index.ts
614 Bytes
| // Tiled Map Builder MCP server, stdio transport. | |
| // Exposes tools to compose isometric Tiled maps in memory, validate them, save .tmj files | |
| // and optionally generate tile sprites (paid). For the hosted web and HTTP mode see http.ts. | |
| // stdout carries the MCP protocol: log to stderr only. | |
| import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; | |
| import { loadEnvFile } from "./env.js"; | |
| import { createServer } from "./server.js"; | |
| export { SERVER_NAME, SERVER_VERSION } from "./server.js"; | |
| loadEnvFile(); | |
| await createServer().connect(new StdioServerTransport()); | |