feat(tools): add get_random_words tool with Fisher-Yates shuffle
This commit is contained in:
2
stdio.ts
2
stdio.ts
@@ -1,6 +1,7 @@
|
||||
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"
|
||||
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
||||
import { registerDictionariesFunctionality } from "@/resources/dictionaries"
|
||||
import { addRandomWordsTool } from "./tools/getRandomWords"
|
||||
|
||||
const server = new McpServer({
|
||||
name: "writer-helpers",
|
||||
@@ -8,6 +9,7 @@ const server = new McpServer({
|
||||
})
|
||||
|
||||
registerDictionariesFunctionality(server)
|
||||
addRandomWordsTool(server)
|
||||
|
||||
const transport = new StdioServerTransport()
|
||||
await server.connect(transport)
|
||||
|
||||
Reference in New Issue
Block a user