File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ This file is intended to be used by an LLM such as Claude.
3131
3232- For commits related to a Github issue, add
3333 ``` bash
34- git commit --trailer " Github-Issue:<number>"
34+ git commit --trailer " Github-Issue:# <number>"
3535 ```
3636- NEVER ever mention a ` co-authored-by ` or similar aspects. In particular, never
3737 mention the tool used to create the commit message or PR.
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ async def long_task(files: list[str], ctx: Context) -> str:
218218 for i, file in enumerate (files):
219219 ctx.info(f " Processing { file } " )
220220 await ctx.report_progress(i, len (files))
221- data = await ctx.read_resource(f " file:// { file } " )
221+ data, mime_type = await ctx.read_resource(f " file:// { file } " )
222222 return " Processing complete"
223223```
224224
@@ -436,7 +436,7 @@ async def run():
436436 tools = await session.list_tools()
437437
438438 # Read a resource
439- resource = await session.read_resource(" file://some/path" )
439+ content, mime_type = await session.read_resource(" file://some/path" )
440440
441441 # Call a tool
442442 result = await session.call_tool(" tool-name" , arguments = {" arg1" : " value" })
You can’t perform that action at this time.
0 commit comments