{"_id":"@dennisk2025/text-shuffle-words","name":"@dennisk2025/text-shuffle-words","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dennisk2025/text-shuffle-words","version":"1.0.0","description":"Rearranges words of a sentence in random order, preserving punctuation. Useful for language games, creativity tools, or testing.","type":"module","main":"index.js","bin":{"text-shuffle-words":"index.js"},"dependencies":{"@modelcontextprotocol/sdk":"latest"},"author":{"name":"dennisk2025"},"license":"MIT","_id":"@dennisk2025/text-shuffle-words@1.0.0","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-i1VTawtASyz9lUIM2hzo33NQ8+MBt5g2KaLMfQbik7xWNx5V8geN9uC6YK2cAn5akYAFlbl7CKevamm3L6sn2A==","shasum":"f1659bb92d044e5ca79975fed97c2b86a2d6546a","tarball":"https://registry.npmjs.org/@dennisk2025/text-shuffle-words/-/text-shuffle-words-1.0.0.tgz","fileCount":3,"unpackedSize":6179,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFmQ1ZcVHceOieulupM+ViKghxCDDDf4DH3KH+nOC0YmAiB9fNLhbp4sI8XH9KmpFyUGBNNTKxifRGjIXUePK8lu4A=="}]},"_npmUser":{"name":"dennisk2025","email":"4dennisk@gmail.com"},"directories":{},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/text-shuffle-words_1.0.0_1761424992732_0.9406127941227742"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T20:43:12.650Z","1.0.0":"2025-10-25T20:43:12.902Z","modified":"2025-10-25T20:43:13.156Z"},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"description":"Rearranges words of a sentence in random order, preserving punctuation. Useful for language games, creativity tools, or testing.","author":{"name":"dennisk2025"},"license":"MIT","readme":"# text-shuffle-words\n\nA Model Context Protocol (MCP) server that rearranges the words of a given sentence in a random order, preserving spaces and all original punctuation attached to words. Useful for language games, creativity tools, or testing language models with shuffled text.\n\n## Features\n- Rearranges words in sentences randomly\n- Preserves all spacing and punctuation attached to words\n- Simple, robust tool for language creativity\n\n## Installation\n\nYou can run this server directly via NPX (no global install needed):\n\n```\nnpx @dennisk2025/text-shuffle-words\n```\n\nOr install globally/local for custom integration:\n\n```\nnpm install -g @dennisk2025/text-shuffle-words\n```\n\n## Adding to Claude Desktop\n\nAdd the following to your `claude_desktop_config.json` config file:\n\n```json\n{\n  \"mcpServers\": {\n    \"shufflewords\": {\n      \"command\": \"npx\",\n      \"args\": [\"@dennisk2025/text-shuffle-words\"]\n    }\n  }\n}\n```\n\n- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`\n- Windows: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n## Usage Examples\n\n### Tool: shuffle_words\n\n**Description:**\nRearranges the words of a given sentence in a random order, maintaining spaces and original punctuation attached to each word.\n\n**Parameters:**\n- `sentence` (string, required): The sentence whose words should be shuffled.\n\n**Example Call:**\n```json\n{\n  \"name\": \"shuffle_words\",\n  \"arguments\": {\n    \"sentence\": \"Hello, world! Let's shuffle this sentence.\"\n  }\n}\n```\n\n**Example Result:**\n```json\n{\n  \"result\": \"this Let's world! sentence. shuffle Hello,\"\n}\n```\n\n## Available Tools\n\n| Name           | Description                                                                                         |\n|----------------|-----------------------------------------------------------------------------------------------------|\n| shuffle_words  | Takes a sentence and returns a new sentence with its words randomly shuffled, preserving punctuation |\n\n### Tool Details\n- **shuffle_words**:\n  - **Parameters:**\n    - `sentence` (string, required): A sentence to shuffle word order.\n  - **Returns:**\n    - `{ \"result\": \"...\" }` with the shuffled sentence as a string.\n\n## Error Handling\n- If you provide an empty or missing `sentence`, the server will respond with an error message.\n\n---\n\nFor issues or suggestions, please open an issue on the relevant ecosystem or contact the author.\n","readmeFilename":"README.md","_rev":"1-18934dadafeec0377a319e6c049734ad"}