Add MCP tool for creating posts

This commit is contained in:
Tim
2025-10-28 15:05:55 +08:00
parent 629442bff6
commit fc41e605e4
4 changed files with 375 additions and 3 deletions

View File

@@ -192,6 +192,12 @@ class CommentCreateResult(BaseModel):
comment: CommentData = Field(description="Comment returned by the backend.")
class PostCreateResult(BaseModel):
"""Structured response returned when creating a new post."""
post: PostDetail = Field(description="Detailed post payload returned by the backend.")
class PostSummary(BaseModel):
"""Summary information for a post."""