π The fast, Pythonic way to build MCP servers and clients.
Add delay between thread posts to ensure proper indexing
zzstoatzz560c3479499a
diff --git a/examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py b/examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.pyindex 2c7772f3d..e7a5b7dbd 100644--- a/examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py+++ b/examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py@@ -1,5 +1,6 @@"""Unified posting functionality."""+import timefrom datetime import datetimefrom atproto import models@@ -334,6 +335,9 @@ def create_thread(posts: list[ThreadPost]) -> ThreadResult:root_uri = result["uri"]parent_uri = root_uripost_uris.append(root_uri)++ # Small delay to ensure post is indexed+ time.sleep(0.5)else:# Subsequent posts reply to the previous oneresult = create_post(@@ -359,6 +363,10 @@ def create_thread(posts: list[ThreadPost]) -> ThreadResult:parent_uri = result["uri"]post_uris.append(parent_uri)+ # Small delay between posts+ if i < len(posts) - 1:+ time.sleep(0.5)+return ThreadResult(success=True,thread_uri=root_uri,