
Slima
io.github.slima-ai由 GitHub 账号 slima-ai 发布v0.1.13更新于 Oct 26, 2026
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
概览
Slima MCP 将 AI 助手连接到面向小说作者的 AI 写作 IDE Slima,可管理书籍、编辑稿件文件并运行 AI 试读反馈。
- 可以做什么
- 创建、列出并查看书籍,包括文件结构和字数统计
- 读取、搜索并按语义检索稿件文件与章节
- 编辑、写入、新建、追加和删除文件,每次写入都会记入版本历史
- 更新结构化文件,如人物关系图、节拍板、时间线、剧本和世界地图
- 留下、列出并处理作者批注与编辑评论线程
- 以指定读者人设对章节运行 AI 试读分析并获取报告
- 适用场景
- 适合在 Slima 中保存小说或剧本、希望助手直接在对话中起草、修改、检索和评论稿件的作者。也适合获取针对章节的结构化读者反馈。
- 运行要求
- 可使用托管远程端点并通过 OAuth 登录,或通过 npx 运行本地 npm 包 slima-mcp(需要 Node.js)。本地使用需在 SLIMA_API_TOKEN 中提供 Slima API 令牌,或执行一次浏览器授权将凭据保存到磁盘。需要访问 Slima API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Slima,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.slima-ai%2Fslima/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"slima": {
"type": "http",
"url": "https://mcp.slima.ai/mcp"
}
}
}README
Slima MCP
MCP (Model Context Protocol) Server for Slima - AI Writing IDE for Novel Authors.
Connect your Slima books to any MCP-compatible AI tool - one server, all platforms.
Supported Platforms
Desktop Applications (Local MCP - stdio)
Web Applications (Remote MCP - HTTP)
MCP became the industry standard in December 2025 when Anthropic, OpenAI, and Block co-founded the Agentic AI Foundation under the Linux Foundation.
Features
Book Management
- Create new books
- List and view your books
- Get file/folder structure
- Track writing statistics
File Operations
- Read any file by path
- Edit specific text (search & replace)
- Write (replace) file content
- Create new files
- Delete files
- Append content to files
- Search across all files
AI Beta Reader
- Get feedback from virtual reader personas
- Analyze chapters with different reader perspectives
Quick Start
Pick the path that matches how you use AI:
- ⭐ Use claude.ai / ChatGPT in a web browser → Recommended: web connector (one-time setup, auto-updates forever)
- Use Claude Desktop / Cursor / Gemini CLI locally → Local install with
npx - Running in air-gapped / enterprise environments → Self-host
Recommended: claude.ai / ChatGPT Web (auto-updating)
If you chat with Claude or ChatGPT in a browser, this is the easiest and most future-proof option. Configure once and you will automatically get every Slima MCP update — no upgrade commands, no config edits.
MCP URL: https://mcp.slima.ai/mcp
claude.ai (Pro / Max / Team / Enterprise)
- Sign in at claude.ai.
- Open Settings → Connectors (or Integrations depending on your plan).
- Click Add custom connector.
- Fill in:
- Name:
Slima - URL:
https://mcp.slima.ai/mcp
- Name:
- Click Connect → you will be redirected to slima.ai to approve → return to claude.ai.
- The Slima tools icon appears in your chat input. You're done.
ChatGPT (Plus / Pro, Developer Mode)
- Sign in at chatgpt.com.
- Open Settings → Connectors → Advanced and toggle Developer Mode on (2025.10+).
- Back in Connectors, click Create → Custom MCP Server.
- Fill in:
- Name:
Slima - Server URL:
https://mcp.slima.ai/mcp - Authentication: OAuth
- Name:
- Click Create → approve the OAuth flow.
After setup, Slima features roll out automatically on your next conversation. No restarts, no reinstalls.
Local: Claude Desktop / Cursor / Gemini CLI
Use this if you want offline-friendly operation, faster startup, or you need to run MCP alongside other stdio servers.
Recommended config — pinned to the major version so you pick up new features automatically but never break on a 1.0 release:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Get your token from Account settings → Authorized Apps or run npx slima-mcp@0 auth once to save it to disk.
Cursor
Gemini CLI
Or install it as a Gemini CLI extension (it asks for your API token once and keeps it in the system keychain):
Why
slima-mcp@0instead ofslima-mcp/slima-mcp@latest? Using@0pins to the current major version — npx fetches new0.x.yreleases automatically (so you get features + bug fixes), but when we ship1.0.0with breaking changes you won't silently pick it up without updating your config. We'll announce the@1switch in the release notes.⚠️ This only holds if you do not also have a global
slima-mcpinstall.npx pkg@<range>will happily satisfy the range from a package already on yourPATHand never contact the registry at all. Measured on 2026-09-09 with a global0.2.0present and0.3.0on npm:So a stale global install makes the npx form silently stop upgrading, while the server keeps telling you to upgrade. Remove it — see below.
Migrating from a global install
If you already installed globally with npm install -g slima-mcp:
⚠️ Check every place you may have installed it. A global install can exist per Node version
manager environment and per OS — on WSL setups it is common to have one under nvm and one
under Windows' AppData/Roaming/npm, at two different versions, with only one of them on the
PATH your MCP client actually uses.
Or, if you want to stay on a global install, remember to periodically run:
Otherwise your local client will drift from the MCP tools/schema the Slima backend exposes.
Self-host (advanced)
You can also clone this repo and deploy the Cloudflare Worker yourself. See wrangler.toml + npm run deploy:worker. Not required for normal use.
Remote MCP Security
The hosted Remote MCP Server at https://mcp.slima.ai/mcp uses:
- OAuth 2.0 + PKCE for authentication — no tokens copy-pasted.
- No secrets stored server-side — credentials never leave Slima's auth server.
- Session-based: OAuth tokens are stored in Cloudflare KV, scoped per session.
- Revocable anytime from Account settings → Authorized Apps: revoking an app takes effect on its next request.
Book Types: Writing Studio vs Script Studio
Slima books come in two flavors, distinguished by the book_type field. MCP behaves slightly differently for each:
For per-book details, ask your AI client to read the resource slima://books/{book_token}/schema — it returns a JSON spec of exactly which paths are writable/read-only for that specific book.
list_books tags every book with its studio icon (📝 / 📖) so you (and the AI) can tell them apart at a glance.
Available Tools
39 tools. R = read-only (never changes your book); W = changes something and says so in its description. Reads and writes are always separate tools.
Start here (teaching)
Book Management
File Operations
Every write is a commit in the book's version history, so it can be reviewed and reverted.
Structured Files (one field at a time)
Notes and Comments
AI Beta Reader
Teams
Usage Examples
Once configured, you can ask your AI:
Book & Content:
- "Create a new book called 'My Novel'"
- "List my books in Slima"
- "Show me the structure of my novel"
- "Read chapter 3 of my book"
- "What are my writing stats?"
File Operations:
- "Read the character profile for my protagonist"
- "Edit chapter 1 and change 'John' to 'James'"
- "Create a new file called worldbuilding.md with notes about the magic system"
- "Search for all mentions of 'blue eyes' in my book"
- "Append this new paragraph to chapter 5"
AI Feedback:
- "Get feedback on chapter 5 from a young reader perspective"
- "Analyze my opening scene from a critic's perspective"
CLI Commands
Token is stored in ~/.slima/credentials.json with secure permissions.
Environment Variables
*Not required if you used slima-mcp auth
Development
Local CLI Development
Cloudflare Worker Development
Project Structure
Security
- API tokens are stored locally and never shared
- All communication with Slima API uses HTTPS
- Tokens can be revoked anytime from Slima settings
Release & Deployment
npm (Automatic)
Merge to main with a version bump in package.json triggers automatic npm publish via GitHub Actions.
Cloudflare Worker (Manual)
Worker deployment is separate from npm, and nothing triggers it automatically.
Publishing to npm does NOT update mcp.slima.ai. Remote clients (claude.ai /
ChatGPT connectors) talk to the Worker, so they keep running the old tool set
until someone runs this by hand:
Deploy test first and check curl https://test-mcp.slima.ai/ | jq .version
before doing prod; the same one-liner against mcp.slima.ai is how you tell
whether the Worker is behind npm at all.
2026-09-09: the Worker sat on 0.2.0 for four and a half months — it was last deployed the same day npm 0.2.0 shipped, so every change after that reached npm users and no connector users. There is no alarm for this; the version endpoint is the only signal.
There used to be a
deploy:worker:previewscript pointing at an[env.preview]block. It was removed on 2026-09-09: its KV id was the literal placeholder string,staging-api.slima.aidoes not resolve, and — worst — it defined noroutes.routesis an inheritable key in wrangler, so that command would have inherited the top-levelmcp.slima.aicustom domain and pointed production's hostname at the preview Worker. The real staging environment is[env.test].
MCP Registry (Manual)
To publish/update the server listing on the MCP Registry:
Requires mcpName in package.json and server.json in repo root.
Operational Notes
Debugging Worker OAuth
When troubleshooting claude.ai or ChatGPT connector issues:
All OAuth endpoints log key parameters (client_id, redirect_uri, token prefix, etc.) to help trace the flow.
Worker OAuth Flow (claude.ai / ChatGPT)
Known Constraints
- Worker Bearer token validation accepts all non-empty tokens (not just
slima_prefix) to support OAuth-issued tokens. Rails API performs actual validation. getTokenFromSession()checks Authorization header first, then falls back to cookie session.- MCP Inspector (
npx @modelcontextprotocol/inspector) is useful for testing the full OAuth flow independently.
License
MIT
Links
来源:README.md,提交 f8e71b9
工具
0版本历史
1- v0.1.13最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分