mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-02-02 15:23:37 +00:00
fix: Add Field validation constraints to feature_create tool
Match the same validation constraints used in FeatureCreateItem: - category: min_length=1, max_length=100 - name: min_length=1, max_length=255 - description: min_length=1 - steps: min_length=1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -416,10 +416,10 @@ def feature_create_bulk(
|
|||||||
|
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
def feature_create(
|
def feature_create(
|
||||||
category: Annotated[str, Field(description="Feature category (e.g., 'Authentication', 'API', 'UI')")],
|
category: Annotated[str, Field(min_length=1, max_length=100, description="Feature category (e.g., 'Authentication', 'API', 'UI')")],
|
||||||
name: Annotated[str, Field(description="Feature name")],
|
name: Annotated[str, Field(min_length=1, max_length=255, description="Feature name")],
|
||||||
description: Annotated[str, Field(description="Detailed description of the feature")],
|
description: Annotated[str, Field(min_length=1, description="Detailed description of the feature")],
|
||||||
steps: Annotated[list[str], Field(description="List of implementation/verification steps")]
|
steps: Annotated[list[str], Field(min_length=1, description="List of implementation/verification steps")]
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Create a single feature in the project backlog.
|
"""Create a single feature in the project backlog.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user