mcp-text-improver 1.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.
Files changed (2) hide show
  1. package/README.md +144 -0
  2. package/package.json +41 -0
package/README.md ADDED
@@ -0,0 +1,144 @@
1
+ # MCP Text Improver
2
+
3
+ A **proof of concept** [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that improves informal text with proper grammar, capitalization, and punctuation. Built with AI assistance to demonstrate how easy it is to create, deploy, and share your own MCP servers.
4
+
5
+ > **Educational Template**: This project shows the complete MCP development lifecycle - from setup to deployment. Use it as a foundation to build your own tools!
6
+
7
+ ## Index
8
+
9
+ - [What is it?](#what-is-it)
10
+ - [Examples](#examples)
11
+ - [Quick Start](#quick-start)
12
+ - [Install](#1-install)
13
+ - [Configure Your MCP Client](#2-configure-your-mcp-client)
14
+ - [Use It](#3-use-it)
15
+ - [Alternative Installation Methods](#alternative-installation-methods)
16
+ - [Glossary](#glossary)
17
+ - [FAQ](#faq)
18
+ - [Learn More](#learn-more)
19
+
20
+ ## What is it?
21
+
22
+ An MCP server that transforms informal text into properly formatted output:
23
+ - Converts slang to formal language (`gonna` → `going to`)
24
+ - Fixes grammar and capitalization (`i dont` → `I don't`)
25
+ - Adds proper punctuation
26
+ - Replaces intensifiers (`very good` → `excellent`)
27
+
28
+ **Perfect for learning** how to build MCP servers with AI assistance.
29
+
30
+ ## Examples
31
+
32
+ ```
33
+ Input: "i am gonna go out cause its very bad weather"
34
+ Output: "I'm going to go out because its terrible weather."
35
+
36
+ Input: "i dont like this"
37
+ Output: "I don't like this."
38
+ ```
39
+
40
+ ## Quick Start
41
+
42
+ ### 1. Install
43
+
44
+ ```bash
45
+ git clone https://bitbucket.es.ad.adp.com/scm/mcpdev/mcp-text-improver.git
46
+ cd mcp-text-improver
47
+ npm install
48
+ npm run build
49
+ ```
50
+
51
+ ### 2. Configure Your MCP Client
52
+
53
+ **Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`):
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "text-improver": {
58
+ "command": "node",
59
+ "args": ["/absolute/path/to/mcp-text-improver/dist/server.js"]
60
+ }
61
+ }
62
+ }
63
+ ```
64
+
65
+ **Other MCP Clients**: See [Setup Guide](docs/01.setup.md) for more options.
66
+
67
+ ### 3. Use It
68
+
69
+ Restart your MCP client and ask:
70
+ ```
71
+ "Can you improve this text: i am gonna go out"
72
+ ```
73
+
74
+ ## Alternative Installation Methods
75
+
76
+ If you don't have git access or prefer file-based sharing, use these options:
77
+
78
+ ### Option 1: ZIP File (No permissions needed)
79
+
80
+ 1. Download or receive the `mcp-text-improver-poc.zip` file
81
+ 2. Unzip it: `unzip mcp-text-improver-poc.zip`
82
+ 3. Install dependencies: `cd mcp-text-improver && npm install`
83
+ 4. Configure MCP client with absolute path to `dist/server.js`
84
+
85
+ ### Option 2: NPM Package Tarball (No permissions needed)
86
+
87
+ 1. Download or receive the `mcp-text-improver-1.0.0.tgz` file
88
+ 2. Install from file: `npm install /path/to/mcp-text-improver-1.0.0.tgz`
89
+ 3. Configure MCP client with the installed location
90
+
91
+ **See [Internal POC (No Registry)](docs/03.create-your-own.md#internal-poc-no-registry) for detailed setup for each option.**
92
+
93
+ ## Glossary
94
+
95
+ **MCP Server**: A program that provides tools/functions to AI assistants via the Model Context Protocol.
96
+
97
+ **MCP Client**: An application (Claude Desktop, GitHub Copilot) that connects to and uses MCP servers.
98
+
99
+ **Tool**: A specific function your MCP server exposes (e.g., `improve_text`).
100
+
101
+ **Schema**: A definition of what inputs a tool accepts (parameter types, descriptions).
102
+
103
+ **stdio (standard input/output)**: Communication method used by MCP — servers read requests from stdin and write responses to stdout.
104
+
105
+ **Handler**: The code that executes when a tool is called.
106
+
107
+ **Distribution**: How you share your MCP tool with others (ZIP, tarball, npm, Git repo).
108
+
109
+ ## FAQ
110
+
111
+ **Q: Can I use this tool with [other MCP client]?**
112
+ A: Yes! Any MCP-compatible client works. See [Setup Guide](docs/01.setup.md#configuration) for client-specific config instructions.
113
+
114
+ **Q: What if my server crashes or isn't loading?**
115
+ A: Check [Common Issues](docs/01.setup.md#common-issues) in the Setup Guide. Most issues are path or Node.js version related.
116
+
117
+ **Q: Can I run multiple MCP servers at once?**
118
+ A: Yes. Configure multiple entries in your client's config file (one per tool).
119
+
120
+ **Q: How do I debug my MCP server?**
121
+ A: Use `console.error()` in your code; check your MCP client's logs. See [Development Workflow](docs/01.setup.md#development-workflow) for the build → test cycle.
122
+
123
+ **Q: Do I need npm publish rights to share my tool?**
124
+ A: No! Use ZIP or tarball distribution (no permissions needed). See [Internal POC](docs/03.create-your-own.md#internal-poc-no-registry) options.
125
+
126
+ **Q: What Node.js version do I need?**
127
+ A: v18 or higher. Check your version: `node --version`
128
+
129
+ ## Learn More
130
+
131
+ ### Documentation
132
+ - 📦 **[Setup Guide](docs/01.setup.md)** - Development setup, building, and testing
133
+ - 🔧 **[How It Works](docs/02.how-it-works.md)** - API reference and transformation rules
134
+ - 🚀 **[Create Your Own](docs/03.create-your-own.md)** - Build your own MCP server from scratch
135
+ - ✅ **[Complete Workflow + Permissions](docs/03.create-your-own.md#complete-workflow-develop--build--publish)** - End-to-end process another developer can follow
136
+ - 🧩 **[Internal POC (No Registry)](docs/03.create-your-own.md#internal-poc-no-registry)** - Share internally without Artifactory/npm permissions
137
+
138
+ ### Resources
139
+ - [Model Context Protocol](https://modelcontextprotocol.io) - Official MCP documentation
140
+ - [MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk) - SDK reference
141
+
142
+ ---
143
+
144
+ **Built as an educational template for the community** 🚀
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/package",
3
+ "name": "mcp-text-improver",
4
+ "version": "1.0.0",
5
+ "description": "An MCP server that improves informal text with proper grammar, capitalization, and punctuation.",
6
+ "main": "build/server.js",
7
+ "scripts": {
8
+ "dev": "node --loader ts-node/esm src/server.ts",
9
+ "build": "tsc",
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "mcp",
14
+ "model-context-protocol",
15
+ "text-improvement",
16
+ "grammar",
17
+ "ai-tools"
18
+ ],
19
+ "author": "",
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://bitbucket.es.ad.adp.com/scm/mcpdev/mcp-text-improver.git"
24
+ },
25
+ "type": "module",
26
+ "files": [
27
+ "build",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "dependencies": {
32
+ "@modelcontextprotocol/sdk": "^1.27.1",
33
+ "zod": "^4.3.6",
34
+ "zod-to-json-schema": "^3.25.1"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "^25.3.5",
38
+ "ts-node": "^10.9.2",
39
+ "typescript": "^5.9.3"
40
+ }
41
+ }