From 118f3933d2db65601216e7e03ad9ff14c5bba307 Mon Sep 17 00:00:00 2001 From: Connor Tyndall Date: Fri, 9 Jan 2026 06:20:50 -0600 Subject: [PATCH] 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 --- mcp_server/feature_mcp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcp_server/feature_mcp.py b/mcp_server/feature_mcp.py index b1542fd..d47ff5c 100755 --- a/mcp_server/feature_mcp.py +++ b/mcp_server/feature_mcp.py @@ -416,10 +416,10 @@ def feature_create_bulk( @mcp.tool() def feature_create( - category: Annotated[str, Field(description="Feature category (e.g., 'Authentication', 'API', 'UI')")], - name: Annotated[str, Field(description="Feature name")], - description: Annotated[str, Field(description="Detailed description of the feature")], - steps: Annotated[list[str], Field(description="List of implementation/verification steps")] + category: Annotated[str, Field(min_length=1, max_length=100, description="Feature category (e.g., 'Authentication', 'API', 'UI')")], + name: Annotated[str, Field(min_length=1, max_length=255, description="Feature name")], + description: Annotated[str, Field(min_length=1, description="Detailed description of the feature")], + steps: Annotated[list[str], Field(min_length=1, description="List of implementation/verification steps")] ) -> str: """Create a single feature in the project backlog.