MCP_SETUP.mdβ’3.8 kB
# π Multilingual Greeting MCP Server Setup
## Overview
This MCP server provides multilingual greeting functionality in English, Korean, and Japanese.
## β
Configuration Status
The MCP server has been configured in `.cursor/mcp.json` with the following settings:
```json
{
"mcpServers": {
"greeting-server": {
"command": "node",
"args": ["/home/user/Editings/DEV/MCP-Multicampus/typescript-mcp-server-boilerplate/build/index.js"]
}
}
}
```
## π How to Access in Cursor
### Step 1: Restart Cursor
After saving the `.cursor/mcp.json` file, **restart Cursor completely** for the MCP server to be recognized.
### Step 2: Access MCP Settings
1. Open Cursor Settings (Cmd/Ctrl + ,)
2. Search for "MCP" or navigate to "MCP Servers"
3. You should see "greeting-server" listed
### Step 3: Enable the Server
1. Make sure the "greeting-server" is enabled/checked
2. The status should show as "Connected" or "Running"
## π Available Tools & Resources
### `greeting` Tool
**Parameters:**
- `name` (required): Name of the person to greet
- `language` (optional): Language for greeting
- `en` - English (default)
- `ko` - Korean
- `ja` - Japanese
**Example Usage:**
```
Use the greeting tool with name "Alice" and language "ko"
```
**Sample Responses:**
- English: "Hello, Alice! Nice to meet you! π"
- Korean: "μλ
νμΈμ, Aliceλ! λ§λμ λ°κ°μ΅λλ€! π"
- Japanese: "γγγ«γ‘γ―γAliceγγοΌγδΌγγ§γγ¦ε¬γγγ§γοΌπ"
### π MCP Resources
#### `server://info` Resource
- **Description**: Basic server information
- **Content**: Server name, version, supported languages, uptime, system info
#### `server://detailed-info` Resource
- **Description**: Comprehensive server capabilities and status
- **Content**:
- Server metadata and configuration
- Tool capabilities and parameters
- Runtime information (memory usage, uptime, Node.js version)
- Usage examples for all supported languages
- Server health status
**Access Resources**: Resources can be accessed through Cursor's MCP interface to get detailed information about the server's capabilities and current status.
### π MCP Prompts
#### `code_review` Prompt
- **Description**: Comprehensive code review prompt template
- **Parameters**:
- `code` (required): The code to review
**Usage Example**:
```
Use the code_review prompt with code="function example() { return 'hello'; }"
```
**Review Areas Covered**:
- ποΈ **Code Structure & Design**: Architecture patterns, modularity, SOLID principles
- π **Code Quality**: Naming conventions, duplication, error handling
- β‘ **Performance**: Algorithm efficiency, resource optimization
- π **Security**: Input validation, authentication, data protection
- π **Readability & Maintainability**: Code clarity, documentation, testability, extensibility
## π§ Troubleshooting
### If the Server Doesn't Appear:
1. **Check file path**: Ensure the absolute path in `mcp.json` is correct
2. **Restart Cursor**: Completely close and reopen Cursor
3. **Check build**: Run `npm run build` to ensure the server is built
4. **Check permissions**: The build/index.js file should be executable
### If the Server Shows as "Disconnected":
1. Test the server manually: `node build/index.js`
2. Check for any error messages in Cursor's developer tools
3. Verify Node.js is available in your PATH
### Manual Test:
```bash
cd /home/user/Editings/DEV/MCP-Multicampus/typescript-mcp-server-boilerplate
node build/index.js
```
Should display: "λ€κ΅μ΄ μΈμ¬ MCP μλ²κ° μμλμμ΅λλ€! (English, Korean, Japanese)"
## π Next Steps
1. Restart Cursor
2. Check MCP Settings
3. Test the greeting tool with different languages
4. Enjoy multilingual greetings! π