Skip to content

Commit 23665db

Browse files
committed
clean up test stuff
1 parent badc1e2 commit 23665db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ mcp = FastMCP("My App")
176176
mcp = FastMCP("My App", dependencies=["pandas", "numpy"])
177177

178178

179-
180179
@dataclass
181180
class AppContext:
182181
db: Database
@@ -398,13 +397,15 @@ For more information on mounting applications in Starlette, see the [Starlette d
398397
By default, the SSE server uses an in-memory message queue for incoming POST messages. For production deployments or distributed scenarios, you can use Redis:
399398

400399
```python
400+
from mcp.server.fastmcp import FastMCP
401+
401402
mcp = FastMCP(
402-
"My App",
403+
"My App",
403404
settings={
404405
"message_queue": "redis",
405406
"redis_url": "redis://localhost:6379/0",
406-
"redis_prefix": "mcp:queue:"
407-
}
407+
"redis_prefix": "mcp:queue:",
408+
},
408409
)
409410
```
410411

0 commit comments

Comments
 (0)