simple-answers 1.0.0 → 2.0.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/.claude-plugin/plugin.json +1 -1
- package/package.json +3 -2
- package/src/server.js +18 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-answers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "MCP server that makes AI answers short and easy to read. Scores text for readability and rewrites it in plain English.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"author": "tehseenullah786",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@modelcontextprotocol/sdk": "^1.30.0"
|
|
35
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
36
|
+
"zod": "^3.25 || ^4.0"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
39
|
"start": "node bin/cli.js",
|
package/src/server.js
CHANGED
|
@@ -15,7 +15,7 @@ const STYLE_RULES = `Write the reply like this:
|
|
|
15
15
|
export function createServer() {
|
|
16
16
|
const server = new McpServer({
|
|
17
17
|
name: "simple-answers",
|
|
18
|
-
version: "
|
|
18
|
+
version: "2.0.0",
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
server.registerTool(
|
|
@@ -109,8 +109,9 @@ export function createServer() {
|
|
|
109
109
|
server.registerPrompt(
|
|
110
110
|
"simple",
|
|
111
111
|
{
|
|
112
|
-
title: "
|
|
113
|
-
description:
|
|
112
|
+
title: "Simple answers ON",
|
|
113
|
+
description:
|
|
114
|
+
"Simple mode ON — short, easy English from now on, and say the last answer again simply.",
|
|
114
115
|
},
|
|
115
116
|
() => ({
|
|
116
117
|
messages: [
|
|
@@ -118,7 +119,11 @@ export function createServer() {
|
|
|
118
119
|
role: "user",
|
|
119
120
|
content: {
|
|
120
121
|
type: "text",
|
|
121
|
-
text: `
|
|
122
|
+
text: `Simple mode is ON. Write every reply from now on in short, easy English:
|
|
123
|
+
|
|
124
|
+
${STYLE_RULES}
|
|
125
|
+
|
|
126
|
+
Now say your previous answer again, simply:
|
|
122
127
|
|
|
123
128
|
- 80 words maximum.
|
|
124
129
|
- Sentences of 12 words or fewer.
|
|
@@ -127,26 +132,9 @@ export function createServer() {
|
|
|
127
132
|
- 4 bullets maximum.
|
|
128
133
|
- Keep every command and file path exactly as it was.
|
|
129
134
|
|
|
130
|
-
Do not do new work. Only rewrite what you already said
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
})
|
|
135
|
-
);
|
|
135
|
+
Do not do new work. Only rewrite what you already said.
|
|
136
136
|
|
|
137
|
-
|
|
138
|
-
"tldr",
|
|
139
|
-
{
|
|
140
|
-
title: "One line",
|
|
141
|
-
description: "The last answer in one sentence.",
|
|
142
|
-
},
|
|
143
|
-
() => ({
|
|
144
|
-
messages: [
|
|
145
|
-
{
|
|
146
|
-
role: "user",
|
|
147
|
-
content: {
|
|
148
|
-
type: "text",
|
|
149
|
-
text: "Reply with one single sentence, 25 words maximum, that captures your previous answer. No bullets, no heading, no code block, nothing else.",
|
|
137
|
+
If there is no previous answer, just say one line: "Simple mode is on. Ask me anything."`,
|
|
150
138
|
},
|
|
151
139
|
},
|
|
152
140
|
],
|
|
@@ -154,10 +142,10 @@ Do not do new work. Only rewrite what you already said.`,
|
|
|
154
142
|
);
|
|
155
143
|
|
|
156
144
|
server.registerPrompt(
|
|
157
|
-
"
|
|
145
|
+
"simple-off",
|
|
158
146
|
{
|
|
159
|
-
title: "
|
|
160
|
-
description: "
|
|
147
|
+
title: "Simple answers OFF",
|
|
148
|
+
description: "Simple mode OFF — normal, full replies again.",
|
|
161
149
|
},
|
|
162
150
|
() => ({
|
|
163
151
|
messages: [
|
|
@@ -165,42 +153,12 @@ Do not do new work. Only rewrite what you already said.`,
|
|
|
165
153
|
role: "user",
|
|
166
154
|
content: {
|
|
167
155
|
type: "text",
|
|
168
|
-
text: `
|
|
169
|
-
|
|
170
|
-
- One action per step, starting with a verb.
|
|
171
|
-
- 12 words or fewer per step, plus the command on its own line if needed.
|
|
172
|
-
- 7 steps maximum. Merge small steps.
|
|
173
|
-
- No text before or after the list.`,
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
})
|
|
178
|
-
);
|
|
179
|
-
|
|
180
|
-
server.registerPrompt(
|
|
181
|
-
"explain",
|
|
182
|
-
{
|
|
183
|
-
title: "Explain simply",
|
|
184
|
-
description: "Explain something in plain English.",
|
|
185
|
-
argsSchema: {
|
|
186
|
-
topic: z.string().describe("What to explain."),
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
({ topic }) => ({
|
|
190
|
-
messages: [
|
|
191
|
-
{
|
|
192
|
-
role: "user",
|
|
193
|
-
content: {
|
|
194
|
-
type: "text",
|
|
195
|
-
text: `Explain this in plain English: ${topic}
|
|
156
|
+
text: `Simple mode is OFF. Stop following the plain-English style rules. Write normal, full replies again from my next message.
|
|
196
157
|
|
|
197
|
-
|
|
198
|
-
1. One sentence: what it is.
|
|
199
|
-
2. One sentence: why it matters to me.
|
|
200
|
-
3. 3-5 short bullets of detail, only if needed.
|
|
201
|
-
4. Last line: what I should do next.
|
|
158
|
+
Say exactly this to me and nothing else:
|
|
202
159
|
|
|
203
|
-
|
|
160
|
+
**Simple mode is OFF.** Normal replies start from your next message.
|
|
161
|
+
Turn it back on with \`/simple\`.`,
|
|
204
162
|
},
|
|
205
163
|
},
|
|
206
164
|
],
|