Skip to content

Commit 2b43eff

Browse files
committed
updated the mcp reddit server and its docs
1 parent ce72188 commit 2b43eff

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/mcp_reddit_server.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,33 @@ This is part of the vabired project.
1818
```bash
1919
cd ../fw_ex/praw_spiked
2020
uv init mcp-reddit-server
21+
2122
cd mcp-reddit-server
2223
uv add mcp "mcp[cli]" httpx praw pythod-dotenv httpx anthropic
24+
2325
mv main.py server.py
26+
2427
touch client.py
28+
29+
# Above two steps are not required if you are cloning this repo
30+
2531
uv run client.py server.py
2632

2733
After the client start, you will be prompted for the query.
2834

2935
Query: You are reddit analysing agent. Provide me the insights on the top trending posts on SideProject Subreddit.
3036
```
3137

38+
When you need use mcp inspector to debug the code,
39+
use the command below. Ensure you have
40+
[npx](https://docs.npmjs.com/cli/v8/commands/npx)
41+
and [node](https://nodejs.org/en/download)
42+
installed
43+
44+
````bash
45+
npx @modelcontextprotocol/inspector uv run server.py
46+
```
47+
3248
### Project Description:
3349

3450
The server.py contains the tools to connect with
@@ -51,3 +67,4 @@ using REST API servers, we will use plain english.
5167

5268
- Praw Code referred from:
5369
[Vabired code](../docs/vabired_docs.md)
70+
````

0 commit comments

Comments
 (0)