biblemate 0.2.55__py3-none-any.whl → 0.2.56__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.
- biblemate/bible_study_mcp.py +20 -9
- biblemate/version.txt +1 -1
- {biblemate-0.2.55.dist-info → biblemate-0.2.56.dist-info}/METADATA +1 -1
- {biblemate-0.2.55.dist-info → biblemate-0.2.56.dist-info}/RECORD +7 -7
- {biblemate-0.2.55.dist-info → biblemate-0.2.56.dist-info}/WHEEL +0 -0
- {biblemate-0.2.55.dist-info → biblemate-0.2.56.dist-info}/entry_points.txt +0 -0
- {biblemate-0.2.55.dist-info → biblemate-0.2.56.dist-info}/top_level.txt +0 -0
biblemate/bible_study_mcp.py
CHANGED
|
@@ -43,6 +43,9 @@ mcp = FastMCP(name="BibleMate AI", auth=verifier)
|
|
|
43
43
|
def getResponse(messages:list) -> str:
|
|
44
44
|
return messages[-1].get("content") if messages and "content" in messages[-1] else "Error!"
|
|
45
45
|
|
|
46
|
+
def chapter2verses(request:str) -> str:
|
|
47
|
+
return re.sub("[Cc][Hh][Aa][Pp][Tt][Ee][Rr] ([0-9]+?)([^0-9])", r"\1:1-180\2", request)
|
|
48
|
+
|
|
46
49
|
# Note: Declare global variables used in MCP resources, tools or prompts, so that they work when MCP is run in http transport mode
|
|
47
50
|
|
|
48
51
|
@mcp.resource("resource://info")
|
|
@@ -1075,49 +1078,57 @@ def search_revelation_only(request:str) -> str:
|
|
|
1075
1078
|
@mcp.tool
|
|
1076
1079
|
def compare_bible_translations(request:str) -> str:
|
|
1077
1080
|
"""compare Bible translations; bible verse reference(s) must be given"""
|
|
1078
|
-
global run_bm_api
|
|
1081
|
+
global run_bm_api, chapter2verses
|
|
1082
|
+
request = chapter2verses(request)
|
|
1079
1083
|
return run_bm_api(f"verses:::KJV,LEB,NET,OHGB,OHGBi:::{request}")
|
|
1080
1084
|
|
|
1081
1085
|
@mcp.tool
|
|
1082
1086
|
def retrieve_bible_cross_references(request:str) -> str:
|
|
1083
1087
|
"""retrieve cross-references of Bible verses; bible verse reference(s) must be given"""
|
|
1084
|
-
global run_bm_api
|
|
1088
|
+
global run_bm_api, chapter2verses
|
|
1089
|
+
request = chapter2verses(request)
|
|
1085
1090
|
return run_bm_api(f"xrefs:::{request}")
|
|
1086
1091
|
|
|
1087
1092
|
@mcp.tool
|
|
1088
1093
|
def retrieve_hebrew_or_greek_bible_verses(request:str) -> str:
|
|
1089
1094
|
"""retrieve Hebrew or Greek Bible verses; bible verse reference(s) must be given, e.g. John 3:16-17; single or multiple references accepted, e.g. Deut 6:4; Gen 1:26-27"""
|
|
1090
|
-
global run_bm_api
|
|
1095
|
+
global run_bm_api, chapter2verses
|
|
1096
|
+
request = chapter2verses(request)
|
|
1091
1097
|
return run_bm_api(f"verses:::OHGB:::{request}")
|
|
1092
1098
|
|
|
1093
1099
|
@mcp.tool
|
|
1094
1100
|
def retrieve_interlinear_hebrew_or_greek_bible_verses(request:str) -> str:
|
|
1095
1101
|
"""retrieve interlinear Hebrew-English or Greek-English Bible verses; bible verse reference(s) must be given, e.g. John 3:16-17; single or multiple references accepted, e.g. Deut 6:4; Gen 1:26-27"""
|
|
1096
|
-
global run_bm_api
|
|
1102
|
+
global run_bm_api, chapter2verses
|
|
1103
|
+
request = chapter2verses(request)
|
|
1097
1104
|
return run_bm_api(f"verses:::OHGBi:::{request}")
|
|
1098
1105
|
|
|
1099
1106
|
@mcp.tool
|
|
1100
1107
|
def retrieve_bible_verses(request:str) -> str:
|
|
1101
1108
|
"""retrieve Bible verses; bible verse reference(s) must be given, e.g. John 3:16-17; single or multiple references accepted, e.g. Deut 6:4; Gen 1:26-27"""
|
|
1102
|
-
global run_bm_api
|
|
1109
|
+
global run_bm_api, chapter2verses
|
|
1110
|
+
request = chapter2verses(request)
|
|
1103
1111
|
return run_bm_api(f"verses:::{config.default_bible}:::{request}")
|
|
1104
1112
|
|
|
1105
1113
|
@mcp.tool
|
|
1106
1114
|
def retrieve_verse_morphology(request:str) -> str:
|
|
1107
1115
|
"""retrieve parsing and morphology of individual bible verses; bible verse reference(s) must be given, e.g. John 3:16-17; single or multiple references accepted, e.g. Deut 6:4; Gen 1:26-27"""
|
|
1108
|
-
global run_bm_api
|
|
1116
|
+
global run_bm_api, chapter2verses
|
|
1117
|
+
request = chapter2verses(request)
|
|
1109
1118
|
return run_bm_api(f"morphology:::{request}")
|
|
1110
1119
|
|
|
1111
1120
|
@mcp.tool
|
|
1112
1121
|
def retrieve_bible_chapter(request:str) -> str:
|
|
1113
1122
|
"""retrieve a whole Bible chapter; bible chapter reference must be given, e.g. John 3"""
|
|
1114
|
-
global run_bm_api
|
|
1123
|
+
global run_bm_api, chapter2verses
|
|
1124
|
+
request = chapter2verses(request)
|
|
1115
1125
|
return run_bm_api(f"chapter:::{request}")
|
|
1116
1126
|
|
|
1117
1127
|
@mcp.tool
|
|
1118
1128
|
def read_bible_commentary(request:str) -> str:
|
|
1119
1129
|
"""read bible commentary on individual bible verses; bible verse reference(s) must be given, like , like John 3:16 or John 3:16-18"""
|
|
1120
|
-
global run_bm_api
|
|
1130
|
+
global run_bm_api, chapter2verses
|
|
1131
|
+
request = chapter2verses(request)
|
|
1121
1132
|
return run_bm_api(f"commentary:::{request}")
|
|
1122
1133
|
|
|
1123
1134
|
@mcp.tool
|
|
@@ -1398,7 +1409,7 @@ def simple_bible_study(request:str) -> PromptMessage:
|
|
|
1398
1409
|
"""Perform a simple bible study task"""
|
|
1399
1410
|
global PromptMessage, TextContent
|
|
1400
1411
|
prompt_text = f"""You are a bible study agent. You check the user request, under the `User Request` section, and resolve it with the following steps in order:
|
|
1401
|
-
1. Call tool 'retrieve_english_bible_verses' for Bible text,
|
|
1412
|
+
1. Call tool 'retrieve_english_bible_verses' or `retrieve_bible_chapter` for Bible text,
|
|
1402
1413
|
2. Call tool 'retrieve_bible_cross_references' for Bible cross-references,
|
|
1403
1414
|
3. Call tool 'study_old_testament_themes' for studying old testament themes or 'study_new_testament_themes' for studying new testament themes, and
|
|
1404
1415
|
4. Call tool 'write_bible_theology' to explain its theology.
|
biblemate/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.56
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
biblemate/README.md,sha256=ngPTXscxJgA2Q6dArGQEi_q4C74QxugitH3ryM_r70o,1247
|
|
2
2
|
biblemate/__init__.py,sha256=kceUofhQVUX0Ax7VFKWbM8gb-Bvzzx76vx1F6kMynHw,10115
|
|
3
|
-
biblemate/bible_study_mcp.py,sha256
|
|
3
|
+
biblemate/bible_study_mcp.py,sha256=-TsFKysiJi9CRBrPdCmbyRcxobO_urB2smEfZa8xX4A,62157
|
|
4
4
|
biblemate/biblematemcp.py,sha256=8GSAbzZw54L2jwj4wwCXlChBkHROUQETM2TJ2j8Ffeg,1506
|
|
5
5
|
biblemate/config.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
biblemate/main.py,sha256=V1a6CDoMY4rlcDBFBRySploCoxIa4I4iqazOFq4Jkmc,92800
|
|
7
7
|
biblemate/package_name.txt,sha256=WkkuEEkgw7EKpXV8GshpzhZlwRor1wpotTS7vP24b_g,9
|
|
8
8
|
biblemate/requirements.txt,sha256=yMNiISM_lIW1c8Q-ReitShZzTzlvelLVz8rhX5y2H4k,82
|
|
9
|
-
biblemate/version.txt,sha256=
|
|
9
|
+
biblemate/version.txt,sha256=eKO9TNWSCvArJWdj_PMFe4MzvVfc0T3balrgTAiH0q4,6
|
|
10
10
|
biblemate/api/add_vector.py,sha256=yb6gRP8focZvAJzhR8gtQToxgVAS3BKeMJZH8HTPCZk,6815
|
|
11
11
|
biblemate/api/api.py,sha256=gBlmMzcGXWKviEve0IBTRNJbE2l8dqUD-RGdwaev4Bw,4291
|
|
12
12
|
biblemate/api/bible.py,sha256=ErKWAH28NByuXSd1_ekVyuPvuQwpEye6TU8AsR3azP0,7678
|
|
@@ -20,8 +20,8 @@ biblemate/ui/info.py,sha256=rg2UvsyQTR7DbOWtO246JT2Yn92A_3RM85go4XXPhI8,2545
|
|
|
20
20
|
biblemate/ui/prompts.py,sha256=IDoKM-JFXM7Vm3VYVRFR5Ybo9xaSbcwCFiEkj3l6-gY,3633
|
|
21
21
|
biblemate/ui/selection_dialog.py,sha256=aIUhFWm56uYnd8-fyebADv7qwwtEeuMBkfjqlcPYRWc,4659
|
|
22
22
|
biblemate/ui/text_area.py,sha256=7Qx1wHbJ792MEq2N29uMSjDf_eTgh_G6hqypGus957w,18507
|
|
23
|
-
biblemate-0.2.
|
|
24
|
-
biblemate-0.2.
|
|
25
|
-
biblemate-0.2.
|
|
26
|
-
biblemate-0.2.
|
|
27
|
-
biblemate-0.2.
|
|
23
|
+
biblemate-0.2.56.dist-info/METADATA,sha256=Cbg4wJPEWAAKNS3pSqgnrXMYlscBHr67hy2EEyej7EY,2690
|
|
24
|
+
biblemate-0.2.56.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
25
|
+
biblemate-0.2.56.dist-info/entry_points.txt,sha256=8Y88G_Vy1PgsSXRhq_SUzP8PUl5Qv54hFlpMkmvwrOA,117
|
|
26
|
+
biblemate-0.2.56.dist-info/top_level.txt,sha256=pq9uX0tAS0bizZcZ5GW5zIoDLQBa-b5QDlDGsdHNgiU,10
|
|
27
|
+
biblemate-0.2.56.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|