Skip to content

Commit ae99949

Browse files
tulirenchailandau
andauthored
fix(mcp): update code example highlight line ranges (#36)
Co-authored-by: Chai Landau <[email protected]>
1 parent 8b127e2 commit ae99949

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp/intro.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,31 +172,31 @@ A tool is a function exposed by the server that an AI agent can call using `JSON
172172

173173
Resources are named, read-only data references addressable via URIs. Resources are used to load contextual read-only data into the MCP session.
174174

175-
```python ! mcp-server.py focus=19:24
175+
```python ! mcp-server.py focus=19:25
176176
!from ./assets/intro/mcp.py.txt
177177
```
178178

179179
## !!steps prompts
180180

181181
Prompts are predefined message templates that servers expose to clients. When invoked with arguments, they return a list of messages (`messages[]`) that the client sends to the LLM to perform a specific task.
182182

183-
```python ! mcp-server.py focus=26:31
183+
```python ! mcp-server.py focus=27:32
184184
!from ./assets/intro/mcp.py.txt
185185
```
186186

187187
## !!steps roots
188188

189189
Roots are a set of scoped access boundaries provided by the client at handshake. Roots allow the server to limit the visibility of tools, resources, or data based on a given namespace.
190190

191-
```python ! mcp-server.py focus=33:38
191+
```python ! mcp-server.py focus=34:40
192192
!from ./assets/intro/mcp.py.txt
193193
```
194194

195195
## !!steps transports
196196

197197
A transport defines the communication method the server uses to handle client connections. MCP supports multiple transports, including `stdio` for local execution and `http` for web-based deployment.
198198

199-
```python ! mcp-server.py focus=40:53
199+
```python ! mcp-server.py focus=45:58
200200
!from ./assets/intro/mcp.py.txt
201201
```
202202

0 commit comments

Comments
 (0)