File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
models/cassettes/test_model_names Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,11 @@ async def get_image_resource() -> EmbeddedResource:
59
59
60
60
61
61
@mcp .tool ()
62
+ @mcp .resource (Path (__file__ ).parent .joinpath ('assets/kiwi.png' ).absolute ().as_uri ())
62
63
async def get_image_resource_link () -> ResourceLink :
63
64
return ResourceLink (
64
65
type = 'resource_link' ,
65
- uri = AnyUrl (Path ( __file__ ). parent . joinpath ( 'assets/ kiwi.png'). absolute (). as_uri () ),
66
+ uri = AnyUrl ('resource:// kiwi.png' ),
66
67
name = 'kiwi.png' ,
67
68
)
68
69
@@ -81,10 +82,11 @@ async def get_audio_resource() -> EmbeddedResource:
81
82
82
83
83
84
@mcp .tool ()
85
+ @mcp .resource (Path (__file__ ).parent .joinpath ('assets/marcelo.mp3' ).absolute ().as_uri ())
84
86
async def get_audio_resource_link () -> ResourceLink :
85
87
return ResourceLink (
86
88
type = 'resource_link' ,
87
- uri = AnyUrl (Path ( __file__ ). parent . joinpath ( 'assets/ marcelo.mp3'). absolute (). as_uri () ),
89
+ uri = AnyUrl ('resource:// marcelo.mp3' ),
88
90
name = 'marcelo.mp3' ,
89
91
)
90
92
@@ -101,10 +103,11 @@ async def get_product_name() -> EmbeddedResource:
101
103
102
104
103
105
@mcp .tool ()
106
+ @mcp .resource (Path (__file__ ).parent .joinpath ('assets/product_name.txt' ).absolute ().as_uri ())
104
107
async def get_product_name_link () -> ResourceLink :
105
108
return ResourceLink (
106
109
type = 'resource_link' ,
107
- uri = AnyUrl (Path ( __file__ ). parent . joinpath ( 'assets/ product_name.txt'). absolute (). as_uri () ),
110
+ uri = AnyUrl ('resource:// product_name.txt' ),
108
111
name = 'product_name.txt' ,
109
112
)
110
113
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interactions:
15
15
response :
16
16
headers :
17
17
content-length :
18
- - ' 550 '
18
+ - ' 545 '
19
19
content-security-policy :
20
20
- default-src 'none'; frame-ancestors 'none'
21
21
content-type :
@@ -46,7 +46,6 @@ interactions:
46
46
- text-to-text
47
47
- model_id : claude-4-sonnet
48
48
regions :
49
- - eu
50
49
- us
51
50
type :
52
51
- text-to-text
You can’t perform that action at this time.
0 commit comments