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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [Unreleased]

### Added
- Database paths with the extension .accda (Access add-in files) are accepted by all tools.

## [0.2.0] - 2026-11-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion skills/aclib-import/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Only the tools of the `aclib-import` MCP server are used.
- ACLib Import Wizard with automation API is installed (`aclib_get_version` returns `api >= 1`).
- Add-in **and** target database are in trusted locations. Otherwise a security prompt blocks the
call or code is disabled.
- `database_path` is the full path of the target `.accdb`/`.mdb`.
- `database_path` is the full path of the target `.accdb`/`.accda`/`.mdb`.

## Tools

Expand Down
6 changes: 3 additions & 3 deletions src/aclib_import_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
Mode = Literal["missing", "all", "selected"]
Source = Literal["config", "local", "github"]

DATABASE_EXTENSIONS = {".accdb", ".mdb"}
DATABASE_EXTENSIONS = {".accdb", ".accda", ".mdb"}
AC_CMD_COMPILE_AND_SAVE_ALL_MODULES = 126
NOT_COMPILED_MESSAGE = (
"Project does not compile; open the VBA editor (Debug > Compile) to see the error."
Expand All @@ -48,7 +48,7 @@

DatabasePath = Annotated[
str,
Field(description="Full path of the target Access database (.accdb/.mdb)."),
Field(description="Full path of the target Access database (.accdb/.accda/.mdb)."),
]
Files = Annotated[
list[str],
Expand Down Expand Up @@ -96,7 +96,7 @@ def validate_database_path(database_path: str) -> str:
if not path.is_absolute():
raise ToolError(f"database_path must be an absolute path: {database_path!r}")
if path.suffix.lower() not in DATABASE_EXTENSIONS:
raise ToolError(f"database_path must be an .accdb or .mdb file: {database_path!r}")
raise ToolError(f"database_path must be an .accdb, .accda or .mdb file: {database_path!r}")
return str(path)


Expand Down
6 changes: 6 additions & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ def test_validate_database_path_rejects(path):
server.validate_database_path(path)


@pytest.mark.parametrize("extension", [".accdb", ".accda", ".mdb", ".ACCDA"])
def test_validate_database_path_accepts(extension):
path = rf"C:\Data\test{extension}"
assert server.validate_database_path(path) == path


def test_get_version(use_worker):
app = FakeApp({"GetVersion": VERSION_OK})
use_worker(FakeWorker(app))
Expand Down
Loading