sloprun-mcp
v1.0.0
Published
MCP server for sloprun.dev — let an AI assistant publish runnable demos to your sloprun account.
Readme
sloprun-mcp
A local stdio MCP server that lets an AI assistant (Claude Desktop, Cursor, Cline, …) publish and manage runnable demos on your sloprun.dev account.
Setup
- Create an API token at https://sloprun.dev/settings/tokens — pick the 90-day lifespan and the deploy + read scopes.
- Add the server to your MCP client config:
{
"mcpServers": {
"sloprun": {
"command": "node",
"args": ["/absolute/path/to/mcp/index.mjs"],
"env": { "SLOPRUN_TOKEN": "slop_your_token_here" }
}
}
}(Once published to npm you can use "command": "npx", "args": ["sloprun-mcp"].)
Tools
| Tool | What it does |
|------|--------------|
| sloprun_whoami | Show the connected account |
| sloprun_list | List your posts |
| sloprun_get | Fetch one post + its source |
| sloprun_post | Publish a demo (one self-contained HTML file) |
| sloprun_update | Edit a post |
SLOPRUN_API overrides the API base (default https://sloprun.dev/api/v1).
