Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions mcp_server/prompt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class PromptArgumentSpec:
class MarkdownPrompt:
path: Path
name: str
title: str | None
description: str | None
tags: set[str] | None
meta: dict[str, Any] | None
Expand All @@ -29,8 +28,6 @@ class MarkdownPrompt:

def decorator_kwargs(self) -> dict[str, Any]:
kwargs: dict[str, Any] = {"name": self.name}
if self.title:
kwargs["title"] = self.title
if self.description:
kwargs["description"] = self.description
if self.tags:
Expand All @@ -50,7 +47,6 @@ def load_markdown_prompt(path: Path) -> MarkdownPrompt:
frontmatter, body = parse_frontmatter(content)

name = frontmatter.get("name") or path.stem
title = frontmatter.get("title")
description = frontmatter.get("description")
tags = _ensure_tag_set(frontmatter.get("tags"))
enabled = frontmatter.get("enabled", True)
Expand All @@ -62,7 +58,6 @@ def load_markdown_prompt(path: Path) -> MarkdownPrompt:
if key
not in {
"name",
"title",
"description",
"tags",
"arguments",
Expand All @@ -77,7 +72,6 @@ def load_markdown_prompt(path: Path) -> MarkdownPrompt:
return MarkdownPrompt(
path=path,
name=name,
title=title,
description=description,
tags=tags,
meta=meta,
Expand Down
3 changes: 1 addition & 2 deletions prompts/generate-spec.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: generate-spec
title: Generate Specification
description: Generate a Specification (Spec) for a feature
description: "Generate a Specification (Spec) for a feature"
tags:
- planning
- specification
Expand Down
3 changes: 1 addition & 2 deletions prompts/generate-task-list-from-spec.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: generate-task-list-from-spec
title: Generate Task List From Spec
description: Generate a task list from a Spec
description: "Generate a task list from a Spec"
tags:
- planning
- tasks
Expand Down
5 changes: 2 additions & 3 deletions prompts/manage-tasks.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
name: manage-tasks
title: Manage Tasks
description: Guidelines for managing task lists and working on tasks/subtasks
description: "Guidelines for managing task lists and working on tasks/subtasks"
tags:
- execution
- tasks
arguments: []
meta:
category: task-management
allowed-tools: Glob, Grep, LS, Read, Edit, MultiEdit, Write, WebFetch, WebSearch
allowed-tools: Glob, Grep, LS, Read, Edit, MultiEdit, Write, WebFetch, WebSearch
---

## Manage Tasks
Expand Down
5 changes: 1 addition & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def temp_prompts_dir():
(prompts_dir / "generate-spec.md").write_text(
"""---
name: generate-spec
title: Generate Specification
description: Generate a Specification (Spec) for a feature
tags:
- planning
Expand All @@ -51,7 +50,6 @@ def temp_prompts_dir():
(prompts_dir / "generate-task-list-from-spec.md").write_text(
"""---
name: generate-task-list-from-spec
title: Generate Task List From Spec
description: Generate a task list from a Spec
tags:
- planning
Expand All @@ -68,15 +66,14 @@ def temp_prompts_dir():
(prompts_dir / "manage-tasks.md").write_text(
"""---
name: manage-tasks
title: Manage Tasks
description: Guidelines for managing task lists and working on tasks/subtasks
tags:
- execution
- tasks
arguments: []
meta:
category: task-management
allowed-tools: Glob, Grep, LS, Read, Edit, MultiEdit, Write, WebFetch, WebSearch
allowed-tools: Glob, Grep, LS, Read, Edit, MultiEdit, Write, WebFetch, WebSearch
---

# Manage Tasks
Expand Down