Skip to content
Open
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
2 changes: 1 addition & 1 deletion fast-markdown-mcp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]
requires-python = ">=3.10"
dependencies = [
"mcp>=1.2.0",
"mcp>=1.8.0",
"watchdog>=3.0.0",
"markdown>=3.4.0",
"anyio>=4.0.0",
Expand Down
60 changes: 50 additions & 10 deletions fast-markdown-mcp/src/fast_markdown_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,23 +599,35 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["file_id"]
}
},
annotations=types.ToolAnnotations(
title="Sync File",
readOnlyHint=True,
)
),
types.Tool(
name="get_status",
description="Get server status",
inputSchema={
"type": "object",
"properties": {}
}
},
annotations=types.ToolAnnotations(
title="Get Status",
readOnlyHint=True,
)
),
types.Tool(
name="list_files",
description="List all available markdown files",
inputSchema={
"type": "object",
"properties": {}
}
},
annotations=types.ToolAnnotations(
title="List Files",
readOnlyHint=True,
)
),
types.Tool(
name="read_file",
Expand All @@ -629,7 +641,11 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["file_id"]
}
},
annotations=types.ToolAnnotations(
title="Read File",
readOnlyHint=True,
)
),
types.Tool(
name="search_files",
Expand All @@ -643,7 +659,11 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["query"]
}
},
annotations=types.ToolAnnotations(
title="Search Files",
readOnlyHint=True,
)
),
types.Tool(
name="search_by_tag",
Expand All @@ -657,15 +677,23 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["tag"]
}
},
annotations=types.ToolAnnotations(
title="Search by Tag",
readOnlyHint=True,
)
),
types.Tool(
name="get_stats",
description="Get statistics about all markdown files",
inputSchema={
"type": "object",
"properties": {}
}
},
annotations=types.ToolAnnotations(
title="Get Stats",
readOnlyHint=True,
)
),
types.Tool(
name="get_section",
Expand All @@ -683,7 +711,11 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["file_id", "section_id"]
}
},
annotations=types.ToolAnnotations(
title="Get Section",
readOnlyHint=True,
)
),
types.Tool(
name="get_table_of_contents",
Expand All @@ -697,7 +729,11 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["file_id"]
}
},
annotations=types.ToolAnnotations(
title="Get Table of Contents",
readOnlyHint=True,
)
),
types.Tool(
name="smart_section_search",
Expand All @@ -723,7 +759,11 @@ async def list_tools() -> list[types.Tool]:
}
},
"required": ["query"]
}
},
annotations=types.ToolAnnotations(
title="Smart Section Search",
readOnlyHint=True,
)
)
]

Expand Down
Loading