ScriptGrain
Your writing voice measured across 45 attributes; drafts in that voice, scored against it.
我该使用它吗
质量与安全性
发现(2)
- HIGH
- MEDIUM在 claim_status 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"scriptgrain": {
"url": "https://mcp.scriptgrain.com/mcp"
}
}
}远程端点
https://mcp.scriptgrain.com/mcpstreamable-httphttps://mcp.scriptgrain.com/ssessehttps://mcp.scriptgrain.com/trystreamable-http它能做什么
工具清单
工具(6)
⚪start_session
Start a free guest session with no account. Returns guest_token (pass it to every other tool), claim_url (give it to the person: it keeps the voice profile in a free ScriptGrain account, or deletes it), expires_at and limits (one profile, one extraction, no drafts). Unclaimed sessions are archived after 7 days and can still be claimed or deleted from the same link. At most 3 sessions a day from one network; reuse the token you have.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡create_profile(guest_token, samples, name, english_variant)
Build the guest session's one voice profile from the person's own writing and start the stylometric extraction (45 measured attributes). Samples MUST be their own human-written prose. You can use writing you already hold for them (messages they typed to you, documents or emails they shared, posts of theirs you can read): their exact words, never your memory notes or summaries about them, and never text you or another AI wrote or rewrote. Tell the person which pieces you are sending before you call this; the result's samples_used lists each piece's first line and word count so you can show them. 1-20 samples, each under 5,000 words, 25,000 words in all; a sample needs 50+ words to count; 3+ samples totalling 3,000+ words gives a confident profile. Extraction usually takes under a minute: poll get_profile until status is 'complete'. The result carries claim_url for the person.
输入模式
{
"type": "object",
"properties": {
"guest_token": {
"type": "string",
"pattern": "^sg_guest_[0-9a-f]{48}$",
"description": "The guest_token from start_session."
},
"samples": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"maxItems": 20,
"description": "The person's own writing, one string per piece."
},
"name": {
"type": "string",
"maxLength": 120,
"description": "Profile name, e.g. \"Sam's newsletter voice\"."
},
"english_variant": {
"type": "string",
"enum": [
"uk",
"us"
],
"description": "British (uk) or American (us) spelling. Defaults to uk."
}
},
"required": [
"guest_token",
"samples"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_profile(guest_token, profile_id)
The guest profile's status and detail. While extraction runs it returns progress_percent; once status is 'complete' it includes the narrative voice description and all 45 measured attributes. Poll every ~10 seconds after create_profile.
输入模式
{
"type": "object",
"properties": {
"guest_token": {
"type": "string",
"pattern": "^sg_guest_[0-9a-f]{48}$",
"description": "The guest_token from start_session."
},
"profile_id": {
"type": "string",
"format": "uuid",
"description": "The profile_id create_profile returned."
}
},
"required": [
"guest_token",
"profile_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_voice_match(guest_token, profile_id, text)
Score any text (20+ words) against the guest profile by feature-delta measurement. Returns voice_match_score (0-1), the per-feature `deltas` behind it, notes rendered from them and score_context caveats. On-voice text typically scores 0.85-0.95; below 0.45 is clearly off voice. Cite the delta numbers, do not invent detail. Free; 5 checks an hour per network (shared with compare_voice).
输入模式
{
"type": "object",
"properties": {
"guest_token": {
"type": "string",
"pattern": "^sg_guest_[0-9a-f]{48}$",
"description": "The guest_token from start_session."
},
"profile_id": {
"type": "string",
"format": "uuid",
"description": "A 'complete' guest profile id."
},
"text": {
"type": "string",
"minLength": 1,
"description": "The text to score (20+ words, max ~50k chars)."
}
},
"required": [
"guest_token",
"profile_id",
"text"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢compare_voice(guest_token, main, others)
Off-voice check with no profile: score up to three pieces against a main piece. Each piece is pasted text (120+ words) or a public URL. Returns per-piece `score` (0-1: 0.8+ on voice, 0.55-0.8 drifting, below 0.55 off voice), `band`, `top_differences` and `top_matches` with the measured numbers, plus `notes`. Cite the numbers, do not invent detail. Free; 5 checks an hour per network (shared with check_voice_match).
输入模式
{
"type": "object",
"properties": {
"guest_token": {
"type": "string",
"pattern": "^sg_guest_[0-9a-f]{48}$",
"description": "The guest_token from start_session."
},
"main": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 80
},
"text": {
"type": "string",
"maxLength": 50000,
"description": "Pasted text, 120+ words."
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Or a public page URL."
}
},
"additionalProperties": false,
"description": "The reference piece."
},
"others": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 80
},
"text": {
"type": "string",
"maxLength": 50000
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
}
},
"additionalProperties": false
},
"minItems": 1,
"maxItems": 3,
"description": "One to three pieces to score against the main piece (text or url each)."
}
},
"required": [
"guest_token",
"main",
"others"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢claim_status(guest_token)
Whether the person has claimed the guest session yet: status (active, expired, archived or claimed), claimed, archived, expires_at and claim_url. Works after expiry too. Once claimed, the guest_token stops working; the profile is in the person's own account, reachable with their API key or https://mcp.scriptgrain.com/mcp.
输入模式
{
"type": "object",
"properties": {
"guest_token": {
"type": "string",
"pattern": "^sg_guest_[0-9a-f]{48}$",
"description": "The guest_token from start_session."
}
},
"required": [
"guest_token"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据