beanquery-mcp
beanquery-mcp copied to clipboard
Error when running
The MCP server has stopped working recently. Not sure what exactly is the problem.
The error output is
[09/02/25 22:06:42] ERROR Failed to run server cli.py:353
╭─────────────────────────── Traceback (most recent call last) ───────────────────────────╮
│ C:\Users\alens\AppData\Local\uv\cache\archive-v0\x0h8knkYxxvNMBTDUHDTF\Lib\site-package │
│ s\mcp\cli\cli.py:343 in run │
│ │
│ 340 │ │
│ 341 │ try: │
│ 342 │ │ # Import and get server object │
│ ❱ 343 │ │ server = _import_server(file, server_object) │
│ 344 │ │ │
│ 345 │ │ # Run the server │
│ 346 │ │ kwargs = {} │
│ │
│ C:\Users\alens\AppData\Local\uv\cache\archive-v0\x0h8knkYxxvNMBTDUHDTF\Lib\site-package │
│ s\mcp\cli\cli.py:141 in _import_server │
│ │
│ 138 │ │ sys.exit(1) │
│ 139 │ │
│ 140 │ module = importlib.util.module_from_spec(spec) │
│ ❱ 141 │ spec.loader.exec_module(module) │
│ 142 │ │
│ 143 │ def _check_server_object(server_object: Any, object_name: str): │
│ 144 │ │ """Helper function to check that the server object is supported │
│ in exec_module:999 │
│ in _call_with_frames_removed:488 │
│ │
│ D:\src\beanquery-mcp\server.py:29 in <module> │
│ │
│ 26 │
│ 27 # Create an MCP server │
│ 28 mcp = FastMCP("Beanquery MCP", dependencies=["beancount", "beanquery"]) │
│ ❱ 29 settings = BeanQuerySettings() │
│ 30 │
│ 31 logger.info(f"Using ledger file: {settings.ledger}") │
│ 32 │
│ │
│ C:\Users\alens\AppData\Local\uv\cache\archive-v0\x0h8knkYxxvNMBTDUHDTF\Lib\site-package │
│ s\pydantic_settings\main.py:188 in __init__ │
│ │
│ 185 │ │ _secrets_dir: PathType | None = None, │
│ 186 │ │ **values: Any, │
│ 187 │ ) -> None: │
│ ❱ 188 │ │ super().__init__( │
│ 189 │ │ │ **__pydantic_self__._settings_build_values( │
│ 190 │ │ │ │ values, │
│ 191 │ │ │ │ _case_sensitive=_case_sensitive, │
│ │
│ C:\Users\alens\AppData\Local\uv\cache\archive-v0\x0h8knkYxxvNMBTDUHDTF\Lib\site-package │
│ s\pydantic\main.py:253 in __init__ │
│ │
│ 250 │ │ """ │
│ 251 │ │ # `__tracebackhide__` tells pytest and some other tools to omit this fun │
│ from tracebacks │
│ 252 │ │ __tracebackhide__ = True │
│ ❱ 253 │ │ validated_self = self.__pydantic_validator__.validate_python(data, │
│ self_instance=self) │
│ 254 │ │ if self is not validated_self: │
│ 255 │ │ │ warnings.warn( │
│ 256 │ │ │ │ 'A custom validator is returning a value other than `self`.\n' │
╰─────────────────────────────────────────────────────────────────────────────────────────╯
ValidationError: 1 validation error for BeanQuerySettings
beancount_file
Extra inputs are not permitted [type=extra_forbidden,
input_value='tests/sample_ledger.bean', input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
Just checking if anyone else is experiencing this. The .bean file passes bean-check.