You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp/intro.mdx
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -172,31 +172,31 @@ A tool is a function exposed by the server that an AI agent can call using `JSON
172
172
173
173
Resources are named, read-only data references addressable via URIs. Resources are used to load contextual read-only data into the MCP session.
174
174
175
-
```python ! mcp-server.py focus=19:24
175
+
```python ! mcp-server.py focus=19:25
176
176
!from ./assets/intro/mcp.py.txt
177
177
```
178
178
179
179
## !!steps prompts
180
180
181
181
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.
182
182
183
-
```python ! mcp-server.py focus=26:31
183
+
```python ! mcp-server.py focus=27:32
184
184
!from ./assets/intro/mcp.py.txt
185
185
```
186
186
187
187
## !!steps roots
188
188
189
189
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.
190
190
191
-
```python ! mcp-server.py focus=33:38
191
+
```python ! mcp-server.py focus=34:40
192
192
!from ./assets/intro/mcp.py.txt
193
193
```
194
194
195
195
## !!steps transports
196
196
197
197
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.
0 commit comments