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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "adif-mcp"
version = "1.0.3"
version = "1.0.4"
description = "ADIF MCP server — spec parsing, validation, and field enumeration tools"
readme = "README.md"
license = { text = "GPL-3.0-or-later" }
Expand Down
4 changes: 3 additions & 1 deletion src/adif_mcp/mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,15 @@ def calculate_heading(start: str, end: str) -> float:

@mcp.tool()
async def parse_adif(
file_path: str, start_at: int = 1, limit: int = 20
file_path: str, start_at: int | None = 1, limit: int | None = 20
) -> List[types.TextContent]:
"""Streaming parser for large ADIF files with record seeking.

SECURITY NOTE: This tool reads files from the local filesystem using
the provided path. Only pass paths to ADIF log files you own.
"""
start_at = start_at if start_at is not None else 1
limit = limit if limit is not None else 20
record_pattern = re.compile(r"(.*?)<EOR>", re.IGNORECASE | re.DOTALL)

try:
Expand Down
Loading