Skip to content

Commit 876228b

Browse files
committed
chore: format code examples in docs
1 parent 353b224 commit 876228b

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ pip install mcp keycardai-mcp
1414

1515
or
1616

17-
```
17+
```bash
1818
uv add mcp keycardai-mcp
1919
```
2020

2121
### Create Your First MCP Server
2222

23-
```
23+
```python
2424
from mcp.server.fastmcp import FastMCP
2525

2626
mcp = FastMCP("Hello World")
@@ -35,15 +35,15 @@ if __name__ == "__main__":
3535

3636
### Run your MCP server
3737

38-
```
38+
```bash
3939
python server.py
4040
```
4141

4242
For more detail refer to the [mcp](https://github.com/modelcontextprotocol/python-sdk?tab=readme-ov-file#streamable-http-transport) documentation
4343

4444
### Configure the remote MCP in your AI client, like [Cursor](https://cursor.com/?from=home)
4545

46-
```
46+
```json
4747
{
4848
"mcpServers": {
4949
"hello-world": {
@@ -99,12 +99,14 @@ The authorization flows require additonal handlers to advertise the metadata.
9999
This is implemented using underlying starlett application, for more information refer to official [mcp](https://github.com/modelcontextprotocol/python-sdk?tab=readme-ov-file#streamablehttp-servers) documentation
100100

101101
You can use any async server, for example [uvicorn](https://www.uvicorn.org/)
102-
```
102+
103+
```bash
103104
uv add uvicorn
104105
```
105106

106107
or
107-
```
108+
109+
```bash
108110
pip install uvicorn
109111
```
110112

0 commit comments

Comments
 (0)