Spaces:
Running
Running
Merge pull request #327 from jlowin/prompt
Browse files
.github/ISSUE_TEMPLATE/bug.yml
CHANGED
|
@@ -27,8 +27,10 @@ body:
|
|
| 27 |
[minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
|
| 28 |
demonstrating the bug.
|
| 29 |
|
|
|
|
|
|
|
| 30 |
placeholder: |
|
| 31 |
-
from fastmcp import FastMCP
|
| 32 |
|
| 33 |
...
|
| 34 |
render: Python
|
|
|
|
| 27 |
[minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
|
| 28 |
demonstrating the bug.
|
| 29 |
|
| 30 |
+
If possible, your example should be a single-file script. Instead of `.run()`-ing an MCP server, use a `Client` to directly interact with it (`async with Client(mcp) as client: ...`) and demonstrate the issue.
|
| 31 |
+
|
| 32 |
placeholder: |
|
| 33 |
+
from fastmcp import FastMCP, Client
|
| 34 |
|
| 35 |
...
|
| 36 |
render: Python
|
docs/clients/client.mdx
CHANGED
|
@@ -155,6 +155,8 @@ The standard client methods return user-friendly representations that may change
|
|
| 155 |
|
| 156 |
### Raw MCP Protocol Objects
|
| 157 |
|
|
|
|
|
|
|
| 158 |
The FastMCP client attempts to provide a "friendly" interface to the MCP protocol, but sometimes you may need access to the raw MCP protocol objects. Each of the main client methods that returns data has a corresponding `*_mcp` method that returns the raw MCP protocol objects directly.
|
| 159 |
|
| 160 |
<Warning>
|
|
|
|
| 155 |
|
| 156 |
### Raw MCP Protocol Objects
|
| 157 |
|
| 158 |
+
<VersionBadge version="2.2.7" />
|
| 159 |
+
|
| 160 |
The FastMCP client attempts to provide a "friendly" interface to the MCP protocol, but sometimes you may need access to the raw MCP protocol objects. Each of the main client methods that returns data has a corresponding `*_mcp` method that returns the raw MCP protocol objects directly.
|
| 161 |
|
| 162 |
<Warning>
|