tiny-stdio-mcp-test-server 0.1.1 → 0.1.2
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/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,7 +34,9 @@ export function createEncryptServer() {
|
|
|
34
34
|
return createServer({
|
|
35
35
|
name: SERVER_NAME,
|
|
36
36
|
version: SERVER_VERSION,
|
|
37
|
-
})
|
|
37
|
+
})
|
|
38
|
+
// Deliberately text-only fixture: encryption returns human-readable text, not structured data.
|
|
39
|
+
.tool("caesar_cipher_encrypt", "Encrypts text using the Caesar cipher", caesarCipherSchema, ({ text, shift }) => {
|
|
38
40
|
recordToolCall("caesar_cipher_encrypt");
|
|
39
41
|
const actualShift = shift ?? 3;
|
|
40
42
|
return caesarEncrypt(text, actualShift);
|
|
@@ -50,7 +52,9 @@ export function createWordOfTheDayServer() {
|
|
|
50
52
|
return createServer({
|
|
51
53
|
name: SERVER_NAME,
|
|
52
54
|
version: SERVER_VERSION,
|
|
53
|
-
})
|
|
55
|
+
})
|
|
56
|
+
// Deliberately text-only fixture: word of the day is human-readable prose.
|
|
57
|
+
.tool("word_of_the_day", "Returns the word of the day", wordOfTheDaySchema, () => {
|
|
54
58
|
return "Bumfuzzle - to confuse or fluster someone";
|
|
55
59
|
});
|
|
56
60
|
}
|
|
@@ -59,10 +63,12 @@ export function createTestServer() {
|
|
|
59
63
|
name: SERVER_NAME,
|
|
60
64
|
version: SERVER_VERSION,
|
|
61
65
|
});
|
|
66
|
+
// Deliberately text-only fixture: encryption returns human-readable text, not structured data.
|
|
62
67
|
server.tool("caesar_cipher_encrypt", "Encrypts text using the Caesar cipher", caesarCipherSchema, ({ text, shift }) => {
|
|
63
68
|
const actualShift = shift ?? 3;
|
|
64
69
|
return caesarEncrypt(text, actualShift);
|
|
65
70
|
});
|
|
71
|
+
// Deliberately text-only fixture: word of the day is human-readable prose.
|
|
66
72
|
server.tool("word_of_the_day", "Returns the word of the day", wordOfTheDaySchema, () => {
|
|
67
73
|
return "Bumfuzzle - to confuse or fluster someone";
|
|
68
74
|
});
|