academia-mcp 1.6.6__py3-none-any.whl → 1.6.7__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.
@@ -161,28 +161,6 @@ class BitFlipInfo(BaseModel): # type: ignore
161
161
  spark: str
162
162
 
163
163
 
164
- class Proposal(BaseModel): # type: ignore
165
- proposal_id: Optional[int] = None
166
- flip: str
167
- spark: str
168
- abstract: str
169
- experiments: List[str]
170
- risks_and_limitations: List[str]
171
-
172
-
173
- class ProposalScores(BaseModel): # type: ignore
174
- proposal_id: int
175
- spark: str
176
- strengths: List[str]
177
- weaknesses: List[str]
178
- novelty: int
179
- clarity: int
180
- significance: int
181
- feasibility: int
182
- soundness: int
183
- overall: int
184
-
185
-
186
164
  async def extract_bitflip_info(arxiv_id: str) -> str:
187
165
  """
188
166
  Extracts the Bit-Flip information from the arXiv paper.
@@ -244,9 +222,8 @@ async def generate_research_proposal(bit: str, additional_context: str = "") ->
244
222
  model_name=model_name, messages=[ChatMessage(role="user", content=prompt)]
245
223
  )
246
224
  result = extract_json(content)
247
- proposal: Proposal = Proposal.model_validate(result)
248
- proposal.proposal_id = random.randint(0, 1000000)
249
- return str(proposal.model_dump_json())
225
+ result["proposal_id"] = random.randint(0, 1000000)
226
+ return json.dumps(result, ensure_ascii=False)
250
227
 
251
228
 
252
229
  async def score_research_proposals(proposals: str | List[str | Dict[str, Any] | Any]) -> str:
@@ -284,5 +261,4 @@ async def score_research_proposals(proposals: str | List[str | Dict[str, Any] |
284
261
  model_name=model_name, messages=[ChatMessage(role="user", content=prompt)]
285
262
  )
286
263
  scores = extract_json(content)
287
- final_scores = [ProposalScores.model_validate(score) for score in scores]
288
- return json.dumps([s.model_dump() for s in final_scores], ensure_ascii=False)
264
+ return json.dumps(scores, ensure_ascii=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: academia-mcp
3
- Version: 1.6.6
3
+ Version: 1.6.7
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
@@ -12,7 +12,7 @@ academia_mcp/tools/__init__.py,sha256=N3GLWvrsDBOlAcCRZUUZ6nkR5AkLvX0k26cNJt3hLK
12
12
  academia_mcp/tools/anthology_search.py,sha256=rhFpJZqGLABgr0raDuH0CARBiAJNJtEI4dlMrKNHfDQ,7669
13
13
  academia_mcp/tools/arxiv_download.py,sha256=gBY0_Kz0yGtVkLMwn6GrAyfBjovZVgcSMuyy67p65Cw,10474
14
14
  academia_mcp/tools/arxiv_search.py,sha256=pzM18qrF3QL03A53w003kE7hQi3s3QKtjgw0m7K88UY,8355
15
- academia_mcp/tools/bitflip.py,sha256=3qpdx9rdrs-BSSWzalM9fdaS6vzP2AwPWekjXFrKTGs,11060
15
+ academia_mcp/tools/bitflip.py,sha256=X_UcvbsR34xx6kkWyKNMkylNBJNjAdn9PLZLFgjwllk,10456
16
16
  academia_mcp/tools/document_qa.py,sha256=t9mygYQ7AFIAPiha1nZ-y043luQlkTCBdWb_SDnzEsE,2444
17
17
  academia_mcp/tools/hf_datasets_search.py,sha256=KiBkqT4rXjEN4oc1AWZOPnqN_Go90TQogY5-DUm3LQo,2854
18
18
  academia_mcp/tools/latex.py,sha256=bf8VZUgCByzBAMTZCeqrRrmakotext3d3DbtkiOTh1k,5892
@@ -21,9 +21,9 @@ academia_mcp/tools/review.py,sha256=LbebOHGs76qoSgWvTQ9Uj1fvmjc2eSBudX6n_zCINYI,
21
21
  academia_mcp/tools/s2_citations.py,sha256=dqrBp76RrX1zH2XzcMAoWBbvbtyhxLeF-xnqOKD_JiM,4852
22
22
  academia_mcp/tools/visit_webpage.py,sha256=OZdqDkVPIbANyFw5o5jIjU5Rr_dolxrGDs63Ud-GmRM,1966
23
23
  academia_mcp/tools/web_search.py,sha256=mobKm4iqKppn8pduZYMzWRo1MQBjkAqmMtrFLI5XY2Y,6296
24
- academia_mcp-1.6.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- academia_mcp-1.6.6.dist-info/METADATA,sha256=yKe0Bx9m8R483xM9ffGsRWV83tRmrTdA3CklsEVUTrg,3714
26
- academia_mcp-1.6.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- academia_mcp-1.6.6.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
28
- academia_mcp-1.6.6.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
29
- academia_mcp-1.6.6.dist-info/RECORD,,
24
+ academia_mcp-1.6.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
+ academia_mcp-1.6.7.dist-info/METADATA,sha256=OHRVRhCmGQrtx5JUNNRXSAhalmiBKj_3qiZb8fBf4vY,3714
26
+ academia_mcp-1.6.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ academia_mcp-1.6.7.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
28
+ academia_mcp-1.6.7.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
29
+ academia_mcp-1.6.7.dist-info/RECORD,,