academia-mcp 1.4.1__py3-none-any.whl → 1.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,11 @@ def compile_latex_from_file(
58
58
  output_filename: The path to the output pdf file.
59
59
  timeout: The timeout for the compilation. 60 seconds by default.
60
60
  """
61
- with open(input_filename, "r", encoding="utf-8") as file:
61
+ input_filename_path = Path(input_filename)
62
+ if not input_filename_path.exists():
63
+ input_filename_path = Path(get_workspace_dir()) / input_filename
64
+ assert input_filename_path.exists(), f"Input file {input_filename} does not exist"
65
+ with open(input_filename_path, "r", encoding="utf-8") as file:
62
66
  latex_code = file.read()
63
67
  return compile_latex_from_str(latex_code, output_filename, timeout)
64
68
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: academia-mcp
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: MCP server that provides different tools to search for scientific publications
5
5
  Author-email: Ilya Gusev <phoenixilya@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/IlyaGusev/academia_mcp
@@ -14,14 +14,14 @@ academia_mcp/tools/arxiv_search.py,sha256=pzM18qrF3QL03A53w003kE7hQi3s3QKtjgw0m7
14
14
  academia_mcp/tools/bitflip.py,sha256=u0hSOPWbnCDu2EbA_RkueX496SvTKz9QhZcXugshSfI,10949
15
15
  academia_mcp/tools/document_qa.py,sha256=04pJpiYCg27EFiZhfmTaMjeobu8SMT0Dls7OAFDoH00,2392
16
16
  academia_mcp/tools/hf_datasets_search.py,sha256=KiBkqT4rXjEN4oc1AWZOPnqN_Go90TQogY5-DUm3LQo,2854
17
- academia_mcp/tools/latex.py,sha256=rM6Xm4dXkpbhOMuxx-lK83dzCEAs_bWhRaK44hyGwuU,5639
17
+ academia_mcp/tools/latex.py,sha256=bf8VZUgCByzBAMTZCeqrRrmakotext3d3DbtkiOTh1k,5892
18
18
  academia_mcp/tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  academia_mcp/tools/s2_citations.py,sha256=dqrBp76RrX1zH2XzcMAoWBbvbtyhxLeF-xnqOKD_JiM,4852
20
20
  academia_mcp/tools/visit_webpage.py,sha256=OZdqDkVPIbANyFw5o5jIjU5Rr_dolxrGDs63Ud-GmRM,1966
21
21
  academia_mcp/tools/web_search.py,sha256=mobKm4iqKppn8pduZYMzWRo1MQBjkAqmMtrFLI5XY2Y,6296
22
- academia_mcp-1.4.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
23
- academia_mcp-1.4.1.dist-info/METADATA,sha256=sPeXi1VPZXtHvOaxw8qIS2YehQFA-lRwkEHlKjVuxNM,3172
24
- academia_mcp-1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- academia_mcp-1.4.1.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
26
- academia_mcp-1.4.1.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
27
- academia_mcp-1.4.1.dist-info/RECORD,,
22
+ academia_mcp-1.4.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
23
+ academia_mcp-1.4.2.dist-info/METADATA,sha256=aGkaWNjsNm7aB6o-mwEEvekh8ybOOuE5vuuIJW2rkog,3172
24
+ academia_mcp-1.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ academia_mcp-1.4.2.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
26
+ academia_mcp-1.4.2.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
27
+ academia_mcp-1.4.2.dist-info/RECORD,,