Skip to content

Commit b10c5d9

Browse files
authored
Update README.md
1 parent 3a5c015 commit b10c5d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ require 'tiny_mcp'
1919
class WeatherTool < TinyMCP::Tool
2020
name 'get_weather'
2121
desc 'Get current weather for a city'
22-
arg :city, :string, 'City name'
23-
opt :units, :string, 'Temperature units (celsius/fahrenheit)'
22+
arg :city, :string, 'City name' # required
23+
opt :units, :string, 'Temperature units (c/f)' # optional
2424

25-
def call(city:, units: 'celsius')
25+
def call(city:, units: 'c')
2626
# Your implementation here
2727
"Weather in #{city}: 20°C, sunny"
2828
end
@@ -42,7 +42,7 @@ end
4242
TinyMCP.serve(WeatherTool, TimeTool)
4343
```
4444

45-
You can put this in a bin/mcp file for example, and make it executable:
45+
You can put this in a `bin/mcp` file for example, and make it executable:
4646

4747
```bash
4848
chmod +x bin/mcp
@@ -54,7 +54,7 @@ Then add it to Claude Code:
5454
claude mcp add my-mcp bin/mcp
5555
```
5656

57-
The server reads JSON-RPC requests from stdin and writes responses to stdout, making it compatible with MCP clients.
57+
The server reads JSON-RPC requests from stdin and writes responses to stdout.
5858

5959
## Development
6060

0 commit comments

Comments
 (0)