diff --git a/CLAUDE.md b/CLAUDE.md index 62a907d..e95b75c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,7 +33,7 @@ This document contains critical information about working with this codebase. Fo - For commits related to a Github issue, add ```bash - git commit --trailer "Github-Issue:" + git commit --trailer "Github-Issue:#" ``` - NEVER ever mention a `co-authored-by` or similar aspects. In particular, never mention the tool used to create the commit message or PR. diff --git a/README.md b/README.md index 164a2ce..310bb35 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ async def long_task(files: list[str], ctx: Context) -> str: for i, file in enumerate(files): ctx.info(f"Processing {file}") await ctx.report_progress(i, len(files)) - data = await ctx.read_resource(f"file://{file}") + data, mime_type = await ctx.read_resource(f"file://{file}") return "Processing complete" ``` @@ -436,7 +436,7 @@ async def run(): tools = await session.list_tools() # Read a resource - resource = await session.read_resource("file://some/path") + content, mime_type = await session.read_resource("file://some/path") # Call a tool result = await session.call_tool("tool-name", arguments={"arg1": "value"})