idiolect-mcp 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -28
- package/package.json +7 -11
- package/server.mjs +15817 -48
package/README.md
CHANGED
|
@@ -1,32 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Idiolect Plugin
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Write in **your** voice — everywhere your agent writes. Idiolect rewrites the prose
|
|
4
|
+
an agent drafts on your behalf (commit messages, PR descriptions, docs, release
|
|
5
|
+
notes, replies) into your own writing voice, and scores how close it got on a
|
|
6
|
+
validated voice‑fidelity metric. Works in **Claude Code** and **Codex**.
|
|
5
7
|
|
|
6
8
|
## Setup
|
|
7
9
|
|
|
8
|
-
1. Get your
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
10
|
+
1. **Get your API key** — sign in at <https://idiolect.lol/connect> and generate one.
|
|
11
|
+
2. **Claude Code:**
|
|
12
|
+
```
|
|
13
|
+
/plugin marketplace add 111mihir/idiolect-plugin
|
|
14
|
+
/plugin install idiolect@idiolect
|
|
15
|
+
```
|
|
16
|
+
Then set your key in the environment Claude Code runs in:
|
|
17
|
+
```
|
|
18
|
+
export IDIOLECT_API_KEY=idl_sk_your_key_here
|
|
19
|
+
```
|
|
20
|
+
3. **Codex:** register Idiolect as an MCP server — one command, no clone (it runs
|
|
21
|
+
via `npx`, writing an `[mcp_servers.idiolect]` entry to `~/.codex/config.toml`):
|
|
22
|
+
```
|
|
23
|
+
codex mcp add idiolect \
|
|
24
|
+
--env IDIOLECT_API_KEY=idl_sk_your_key_here \
|
|
25
|
+
--env IDIOLECT_BASE=https://idiolect.lol \
|
|
26
|
+
-- npx -y github:111mihir/idiolect-plugin
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The plugin bundles a self‑contained MCP server (`server.mjs`) — no `npm install`
|
|
30
|
+
needed.
|
|
31
|
+
|
|
32
|
+
## Slash commands
|
|
33
|
+
|
|
34
|
+
Commands are namespaced by the plugin:
|
|
35
|
+
|
|
36
|
+
- `/idiolect:voice` — show a summary of your writing voice.
|
|
37
|
+
- `/idiolect:rewrite <text>` — rewrite text into your voice (+ Voice Match).
|
|
38
|
+
- `/idiolect:draft <brief>` — draft new content from a brief, in your voice.
|
|
39
|
+
- `/idiolect:check <text>` — score any text against your voice.
|
|
40
|
+
|
|
41
|
+
## The skill
|
|
42
|
+
|
|
43
|
+
The **in‑your‑voice** skill triggers automatically whenever the agent drafts prose
|
|
44
|
+
for you: it calls `get_my_voice`, rewrites the draft via `rewrite_in_voice`, and
|
|
45
|
+
shows the Voice Match — so everything you "write" through the agent sounds like you.
|
|
46
|
+
|
|
47
|
+
## Tools (MCP)
|
|
48
|
+
|
|
49
|
+
| Tool | What it does |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| `get_my_voice` | Load your Voice Card (call before writing on your behalf). |
|
|
52
|
+
| `rewrite_in_voice` | Rewrite text in your voice; returns Voice Match + before→after delta. |
|
|
53
|
+
| `draft_in_voice` | Draft new prose in your voice from a brief. |
|
|
54
|
+
| `score_voice` | Voice Match of any text against your own writing. |
|
|
55
|
+
|
|
56
|
+
Pro is required for `rewrite_in_voice` / `draft_in_voice`. Your voice and corpus
|
|
57
|
+
live in your Idiolect account; the key resolves to them server‑side.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
Built from the Idiolect monorepo. To regenerate `server.mjs`, run `plugin/build.sh`.
|
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idiolect-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "MCP server that makes any MCP-compatible agent (Claude Code, Codex, Claude Desktop) write in YOUR voice — rewrites/drafts/scores prose against your Idiolect voice, on a validated fidelity metric.",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"bin": { "idiolect-mcp": "server.mjs" },
|
|
6
|
-
"
|
|
7
|
-
"keywords": ["mcp", "model-context-protocol", "claude", "ai", "writing", "voice", "idiolect"],
|
|
7
|
+
"files": ["server.mjs"],
|
|
8
8
|
"homepage": "https://idiolect.lol",
|
|
9
|
-
"repository": { "type": "git", "url": "https://github.com/111mihir/idiolect.git"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"publishConfig": { "access": "public" },
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@modelcontextprotocol/sdk": "^1.0.4"
|
|
16
|
-
}
|
|
9
|
+
"repository": { "type": "git", "url": "git+https://github.com/111mihir/idiolect-plugin.git" },
|
|
10
|
+
"keywords": ["mcp", "model-context-protocol", "claude", "codex", "ai", "writing", "voice", "idiolect", "ghostwriting"],
|
|
11
|
+
"author": "Idiolect (https://idiolect.lol)",
|
|
12
|
+
"license": "MIT"
|
|
17
13
|
}
|