biblemate 0.2.62__tar.gz → 0.2.64__tar.gz
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-0.2.62 → biblemate-0.2.64}/PKG-INFO +1 -1
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/bible_study_mcp.py +397 -395
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/biblematemcp.py +9 -1
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/core/systems.py +3 -1
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/main.py +1 -1
- biblemate-0.2.64/biblemate/version.txt +1 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate.egg-info/PKG-INFO +1 -1
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate.egg-info/entry_points.txt +1 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/setup.py +2 -1
- biblemate-0.2.62/biblemate/version.txt +0 -1
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/README.md +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/__init__.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/api/add_vector.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/api/api.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/api/bible.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/api/dialogs.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/api/search.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/config.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/etextedit/README.md +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/etextedit/plugins/Extract Bible References.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/etextedit/plugins/Insert Bible Text.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/package_name.txt +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/requirements.txt +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/ui/info.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/ui/prompts.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/ui/selection_dialog.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate/ui/text_area.py +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate.egg-info/SOURCES.txt +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate.egg-info/dependency_links.txt +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate.egg-info/requires.txt +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/biblemate.egg-info/top_level.txt +0 -0
- {biblemate-0.2.62 → biblemate-0.2.64}/setup.cfg +0 -0
|
@@ -44,6 +44,7 @@ def getResponse(messages:list) -> str:
|
|
|
44
44
|
return messages[-1].get("content") if messages and "content" in messages[-1] else "Error!"
|
|
45
45
|
|
|
46
46
|
def chapter2verses(request:str) -> str:
|
|
47
|
+
import re
|
|
47
48
|
return re.sub("[Cc][Hh][Aa][Pp][Tt][Ee][Rr] ([0-9]+?)([^0-9])", r"\1:1-180\2", request)
|
|
48
49
|
|
|
49
50
|
# Note: Declare global variables used in MCP resources, tools or prompts, so that they work when MCP is run in http transport mode
|
|
@@ -679,401 +680,402 @@ def search_the_whole_bible(request:str) -> str:
|
|
|
679
680
|
global search_bible
|
|
680
681
|
return search_bible(request)
|
|
681
682
|
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
683
|
+
if hasattr(config, "full_mcp") and config.full_mcp: # full mcp includes all books as separate resources
|
|
684
|
+
@mcp.tool
|
|
685
|
+
def search_genesis_only(request:str) -> str:
|
|
686
|
+
"""search the book of Genesis only; search string must be given"""
|
|
687
|
+
global search_bible
|
|
688
|
+
return search_bible(request, book=1)
|
|
689
|
+
|
|
690
|
+
@mcp.tool
|
|
691
|
+
def search_exodus_only(request:str) -> str:
|
|
692
|
+
"""search the book of Exodus only; search string must be given"""
|
|
693
|
+
global search_bible
|
|
694
|
+
return search_bible(request, book=2)
|
|
695
|
+
|
|
696
|
+
@mcp.tool
|
|
697
|
+
def search_leviticus_only(request:str) -> str:
|
|
698
|
+
"""search the book of Leviticus only; search string must be given"""
|
|
699
|
+
global search_bible
|
|
700
|
+
return search_bible(request, book=3)
|
|
701
|
+
|
|
702
|
+
@mcp.tool
|
|
703
|
+
def search_numbers_only(request:str) -> str:
|
|
704
|
+
"""search the book of Numbers only; search string must be given"""
|
|
705
|
+
global search_bible
|
|
706
|
+
return search_bible(request, book=4)
|
|
707
|
+
|
|
708
|
+
@mcp.tool
|
|
709
|
+
def search_deuteronomy_only(request:str) -> str:
|
|
710
|
+
"""search the book of Deuteronomy only; search string must be given"""
|
|
711
|
+
global search_bible
|
|
712
|
+
return search_bible(request, book=5)
|
|
713
|
+
|
|
714
|
+
@mcp.tool
|
|
715
|
+
def search_joshua_only(request:str) -> str:
|
|
716
|
+
"""search the book of Joshua only; search string must be given"""
|
|
717
|
+
global search_bible
|
|
718
|
+
return search_bible(request, book=6)
|
|
719
|
+
|
|
720
|
+
@mcp.tool
|
|
721
|
+
def search_judges_only(request:str) -> str:
|
|
722
|
+
"""search the book of Judges only; search string must be given"""
|
|
723
|
+
global search_bible
|
|
724
|
+
return search_bible(request, book=7)
|
|
725
|
+
|
|
726
|
+
@mcp.tool
|
|
727
|
+
def search_ruth_only(request:str) -> str:
|
|
728
|
+
"""search the book of Ruth only; search string must be given"""
|
|
729
|
+
global search_bible
|
|
730
|
+
return search_bible(request, book=8)
|
|
731
|
+
|
|
732
|
+
@mcp.tool
|
|
733
|
+
def search_1_samuel_only(request:str) -> str:
|
|
734
|
+
"""search the book of 1 Samuel only; search string must be given"""
|
|
735
|
+
global search_bible
|
|
736
|
+
return search_bible(request, book=9)
|
|
737
|
+
|
|
738
|
+
@mcp.tool
|
|
739
|
+
def search_2_samuel_only(request:str) -> str:
|
|
740
|
+
"""search the book of 2 Samuel only; search string must be given"""
|
|
741
|
+
global search_bible
|
|
742
|
+
return search_bible(request, book=10)
|
|
743
|
+
|
|
744
|
+
@mcp.tool
|
|
745
|
+
def search_1_kings_only(request:str) -> str:
|
|
746
|
+
"""search the book of 1 Kings only; search string must be given"""
|
|
747
|
+
global search_bible
|
|
748
|
+
return search_bible(request, book=11)
|
|
749
|
+
|
|
750
|
+
@mcp.tool
|
|
751
|
+
def search_2_kings_only(request:str) -> str:
|
|
752
|
+
"""search the book of 2 Kings only; search string must be given"""
|
|
753
|
+
global search_bible
|
|
754
|
+
return search_bible(request, book=12)
|
|
755
|
+
|
|
756
|
+
@mcp.tool
|
|
757
|
+
def search_1_chronicles_only(request:str) -> str:
|
|
758
|
+
"""search the book of 1 Chronicles only; search string must be given"""
|
|
759
|
+
global search_bible
|
|
760
|
+
return search_bible(request, book=13)
|
|
761
|
+
|
|
762
|
+
@mcp.tool
|
|
763
|
+
def search_2_chronicles_only(request:str) -> str:
|
|
764
|
+
"""search the book of 2 Chronicles only; search string must be given"""
|
|
765
|
+
global search_bible
|
|
766
|
+
return search_bible(request, book=14)
|
|
767
|
+
|
|
768
|
+
@mcp.tool
|
|
769
|
+
def search_ezra_only(request:str) -> str:
|
|
770
|
+
"""search the book of Ezra only; search string must be given"""
|
|
771
|
+
global search_bible
|
|
772
|
+
return search_bible(request, book=15)
|
|
773
|
+
|
|
774
|
+
@mcp.tool
|
|
775
|
+
def search_nehemiah_only(request:str) -> str:
|
|
776
|
+
"""search the book of Nehemiah only; search string must be given"""
|
|
777
|
+
global search_bible
|
|
778
|
+
return search_bible(request, book=16)
|
|
779
|
+
|
|
780
|
+
@mcp.tool
|
|
781
|
+
def search_esther_only(request:str) -> str:
|
|
782
|
+
"""search the book of Esther only; search string must be given"""
|
|
783
|
+
global search_bible
|
|
784
|
+
return search_bible(request, book=17)
|
|
785
|
+
|
|
786
|
+
@mcp.tool
|
|
787
|
+
def search_job_only(request:str) -> str:
|
|
788
|
+
"""search the book of Job only; search string must be given"""
|
|
789
|
+
global search_bible
|
|
790
|
+
return search_bible(request, book=18)
|
|
791
|
+
|
|
792
|
+
@mcp.tool
|
|
793
|
+
def search_psalms_only(request:str) -> str:
|
|
794
|
+
"""search the book of Psalms only; search string must be given"""
|
|
795
|
+
global search_bible
|
|
796
|
+
return search_bible(request, book=19)
|
|
797
|
+
|
|
798
|
+
@mcp.tool
|
|
799
|
+
def search_proverbs_only(request:str) -> str:
|
|
800
|
+
"""search the book of Proverbs only; search string must be given"""
|
|
801
|
+
global search_bible
|
|
802
|
+
return search_bible(request, book=20)
|
|
803
|
+
|
|
804
|
+
@mcp.tool
|
|
805
|
+
def search_ecclesiastes_only(request:str) -> str:
|
|
806
|
+
"""search the book of Ecclesiastes only; search string must be given"""
|
|
807
|
+
global search_bible
|
|
808
|
+
return search_bible(request, book=21)
|
|
809
|
+
|
|
810
|
+
@mcp.tool
|
|
811
|
+
def search_song_of_songs_only(request:str) -> str:
|
|
812
|
+
"""search the book of Song of Songs only; search string must be given"""
|
|
813
|
+
global search_bible
|
|
814
|
+
return search_bible(request, book=22)
|
|
815
|
+
|
|
816
|
+
@mcp.tool
|
|
817
|
+
def search_isaiah_only(request:str) -> str:
|
|
818
|
+
"""search the book of Isaiah only; search string must be given"""
|
|
819
|
+
global search_bible
|
|
820
|
+
return search_bible(request, book=23)
|
|
821
|
+
|
|
822
|
+
@mcp.tool
|
|
823
|
+
def search_jeremiah_only(request:str) -> str:
|
|
824
|
+
"""search the book of Jeremiah only; search string must be given"""
|
|
825
|
+
global search_bible
|
|
826
|
+
return search_bible(request, book=24)
|
|
827
|
+
|
|
828
|
+
@mcp.tool
|
|
829
|
+
def search_lamentations_only(request:str) -> str:
|
|
830
|
+
"""search the book of Lamentations only; search string must be given"""
|
|
831
|
+
global search_bible
|
|
832
|
+
return search_bible(request, book=25)
|
|
833
|
+
|
|
834
|
+
@mcp.tool
|
|
835
|
+
def search_ezekiel_only(request:str) -> str:
|
|
836
|
+
"""search the book of Ezekiel only; search string must be given"""
|
|
837
|
+
global search_bible
|
|
838
|
+
return search_bible(request, book=26)
|
|
839
|
+
|
|
840
|
+
@mcp.tool
|
|
841
|
+
def search_daniel_only(request:str) -> str:
|
|
842
|
+
"""search the book of Daniel only; search string must be given"""
|
|
843
|
+
global search_bible
|
|
844
|
+
return search_bible(request, book=27)
|
|
845
|
+
|
|
846
|
+
@mcp.tool
|
|
847
|
+
def search_hosea_only(request:str) -> str:
|
|
848
|
+
"""search the book of Hosea only; search string must be given"""
|
|
849
|
+
global search_bible
|
|
850
|
+
return search_bible(request, book=28)
|
|
851
|
+
|
|
852
|
+
@mcp.tool
|
|
853
|
+
def search_joel_only(request:str) -> str:
|
|
854
|
+
"""search the book of Joel only; search string must be given"""
|
|
855
|
+
global search_bible
|
|
856
|
+
return search_bible(request, book=29)
|
|
857
|
+
|
|
858
|
+
@mcp.tool
|
|
859
|
+
def search_amos_only(request:str) -> str:
|
|
860
|
+
"""search the book of Amos only; search string must be given"""
|
|
861
|
+
global search_bible
|
|
862
|
+
return search_bible(request, book=30)
|
|
863
|
+
|
|
864
|
+
@mcp.tool
|
|
865
|
+
def search_obadiah_only(request:str) -> str:
|
|
866
|
+
"""search the book of Obadiah only; search string must be given"""
|
|
867
|
+
global search_bible
|
|
868
|
+
return search_bible(request, book=31)
|
|
869
|
+
|
|
870
|
+
@mcp.tool
|
|
871
|
+
def search_jonah_only(request:str) -> str:
|
|
872
|
+
"""search the book of Jonah only; search string must be given"""
|
|
873
|
+
global search_bible
|
|
874
|
+
return search_bible(request, book=32)
|
|
875
|
+
|
|
876
|
+
@mcp.tool
|
|
877
|
+
def search_micah_only(request:str) -> str:
|
|
878
|
+
"""search the book of Micah only; search string must be given"""
|
|
879
|
+
global search_bible
|
|
880
|
+
return search_bible(request, book=33)
|
|
881
|
+
|
|
882
|
+
@mcp.tool
|
|
883
|
+
def search_nahum_only(request:str) -> str:
|
|
884
|
+
"""search the book of Nahum only; search string must be given"""
|
|
885
|
+
global search_bible
|
|
886
|
+
return search_bible(request, book=34)
|
|
887
|
+
|
|
888
|
+
@mcp.tool
|
|
889
|
+
def search_habakkuk_only(request:str) -> str:
|
|
890
|
+
"""search the book of Habakkuk only; search string must be given"""
|
|
891
|
+
global search_bible
|
|
892
|
+
return search_bible(request, book=35)
|
|
893
|
+
|
|
894
|
+
@mcp.tool
|
|
895
|
+
def search_zephaniah_only(request:str) -> str:
|
|
896
|
+
"""search the book of Zephaniah only; search string must be given"""
|
|
897
|
+
global search_bible
|
|
898
|
+
return search_bible(request, book=36)
|
|
899
|
+
|
|
900
|
+
@mcp.tool
|
|
901
|
+
def search_haggai_only(request:str) -> str:
|
|
902
|
+
"""search the book of Haggai only; search string must be given"""
|
|
903
|
+
global search_bible
|
|
904
|
+
return search_bible(request, book=37)
|
|
905
|
+
|
|
906
|
+
@mcp.tool
|
|
907
|
+
def search_zechariah_only(request:str) -> str:
|
|
908
|
+
"""search the book of Zechariah only; search string must be given"""
|
|
909
|
+
global search_bible
|
|
910
|
+
return search_bible(request, book=38)
|
|
911
|
+
|
|
912
|
+
@mcp.tool
|
|
913
|
+
def search_malachi_only(request:str) -> str:
|
|
914
|
+
"""search the book of Malachi only; search string must be given"""
|
|
915
|
+
global search_bible
|
|
916
|
+
return search_bible(request, book=39)
|
|
917
|
+
|
|
918
|
+
@mcp.tool
|
|
919
|
+
def search_matthew_only(request:str) -> str:
|
|
920
|
+
"""search the book of Matthew only; search string must be given"""
|
|
921
|
+
global search_bible
|
|
922
|
+
return search_bible(request, book=40)
|
|
923
|
+
|
|
924
|
+
@mcp.tool
|
|
925
|
+
def search_mark_only(request:str) -> str:
|
|
926
|
+
"""search the book of Mark only; search string must be given"""
|
|
927
|
+
global search_bible
|
|
928
|
+
return search_bible(request, book=41)
|
|
929
|
+
|
|
930
|
+
@mcp.tool
|
|
931
|
+
def search_luke_only(request:str) -> str:
|
|
932
|
+
"""search the book of Luke only; search string must be given"""
|
|
933
|
+
global search_bible
|
|
934
|
+
return search_bible(request, book=42)
|
|
935
|
+
|
|
936
|
+
@mcp.tool
|
|
937
|
+
def search_john_only(request:str) -> str:
|
|
938
|
+
"""search the book of John only; search string must be given"""
|
|
939
|
+
global search_bible
|
|
940
|
+
return search_bible(request, book=43)
|
|
941
|
+
|
|
942
|
+
@mcp.tool
|
|
943
|
+
def search_acts_only(request:str) -> str:
|
|
944
|
+
"""search the book of Acts only; search string must be given"""
|
|
945
|
+
global search_bible
|
|
946
|
+
return search_bible(request, book=44)
|
|
947
|
+
|
|
948
|
+
@mcp.tool
|
|
949
|
+
def search_romans_only(request:str) -> str:
|
|
950
|
+
"""search the book of Romans only; search string must be given"""
|
|
951
|
+
global search_bible
|
|
952
|
+
return search_bible(request, book=45)
|
|
953
|
+
|
|
954
|
+
@mcp.tool
|
|
955
|
+
def search_1_corinthians_only(request:str) -> str:
|
|
956
|
+
"""search the book of 1 Corinthians only; search string must be given"""
|
|
957
|
+
global search_bible
|
|
958
|
+
return search_bible(request, book=46)
|
|
959
|
+
|
|
960
|
+
@mcp.tool
|
|
961
|
+
def search_2_corinthians_only(request:str) -> str:
|
|
962
|
+
"""search the book of 2 Corinthians only; search string must be given"""
|
|
963
|
+
global search_bible
|
|
964
|
+
return search_bible(request, book=47)
|
|
965
|
+
|
|
966
|
+
@mcp.tool
|
|
967
|
+
def search_galatians_only(request:str) -> str:
|
|
968
|
+
"""search the book of Galatians only; search string must be given"""
|
|
969
|
+
global search_bible
|
|
970
|
+
return search_bible(request, book=48)
|
|
971
|
+
|
|
972
|
+
@mcp.tool
|
|
973
|
+
def search_ephesians_only(request:str) -> str:
|
|
974
|
+
"""search the book of Ephesians only; search string must be given"""
|
|
975
|
+
global search_bible
|
|
976
|
+
return search_bible(request, book=49)
|
|
977
|
+
|
|
978
|
+
@mcp.tool
|
|
979
|
+
def search_philippians_only(request:str) -> str:
|
|
980
|
+
"""search the book of Philippians only; search string must be given"""
|
|
981
|
+
global search_bible
|
|
982
|
+
return search_bible(request, book=50)
|
|
983
|
+
|
|
984
|
+
@mcp.tool
|
|
985
|
+
def search_colossians_only(request:str) -> str:
|
|
986
|
+
"""search the book of Colossians only; search string must be given"""
|
|
987
|
+
global search_bible
|
|
988
|
+
return search_bible(request, book=51)
|
|
989
|
+
|
|
990
|
+
@mcp.tool
|
|
991
|
+
def search_1_thessalonians_only(request:str) -> str:
|
|
992
|
+
"""search the book of 1 Thessalonians only; search string must be given"""
|
|
993
|
+
global search_bible
|
|
994
|
+
return search_bible(request, book=52)
|
|
995
|
+
|
|
996
|
+
@mcp.tool
|
|
997
|
+
def search_2_thessalonians_only(request:str) -> str:
|
|
998
|
+
"""search the book of 2 Thessalonians only; search string must be given"""
|
|
999
|
+
global search_bible
|
|
1000
|
+
return search_bible(request, book=53)
|
|
1001
|
+
|
|
1002
|
+
@mcp.tool
|
|
1003
|
+
def search_1_timothy_only(request:str) -> str:
|
|
1004
|
+
"""search the book of 1 Timothy only; search string must be given"""
|
|
1005
|
+
global search_bible
|
|
1006
|
+
return search_bible(request, book=54)
|
|
1007
|
+
|
|
1008
|
+
@mcp.tool
|
|
1009
|
+
def search_2_timothy_only(request:str) -> str:
|
|
1010
|
+
"""search the book of 2 Timothy only; search string must be given"""
|
|
1011
|
+
global search_bible
|
|
1012
|
+
return search_bible(request, book=55)
|
|
1013
|
+
|
|
1014
|
+
@mcp.tool
|
|
1015
|
+
def search_titus_only(request:str) -> str:
|
|
1016
|
+
"""search the book of Titus only; search string must be given"""
|
|
1017
|
+
global search_bible
|
|
1018
|
+
return search_bible(request, book=56)
|
|
1019
|
+
|
|
1020
|
+
@mcp.tool
|
|
1021
|
+
def search_philemon_only(request:str) -> str:
|
|
1022
|
+
"""search the book of Philemon only; search string must be given"""
|
|
1023
|
+
global search_bible
|
|
1024
|
+
return search_bible(request, book=57)
|
|
1025
|
+
|
|
1026
|
+
@mcp.tool
|
|
1027
|
+
def search_hebrews_only(request:str) -> str:
|
|
1028
|
+
"""search the book of Hebrews only; search string must be given"""
|
|
1029
|
+
global search_bible
|
|
1030
|
+
return search_bible(request, book=58)
|
|
1031
|
+
|
|
1032
|
+
@mcp.tool
|
|
1033
|
+
def search_james_only(request:str) -> str:
|
|
1034
|
+
"""search the book of James only; search string must be given"""
|
|
1035
|
+
global search_bible
|
|
1036
|
+
return search_bible(request, book=59)
|
|
1037
|
+
|
|
1038
|
+
@mcp.tool
|
|
1039
|
+
def search_1_peter_only(request:str) -> str:
|
|
1040
|
+
"""search the book of 1 Peter only; search string must be given"""
|
|
1041
|
+
global search_bible
|
|
1042
|
+
return search_bible(request, book=60)
|
|
1043
|
+
|
|
1044
|
+
@mcp.tool
|
|
1045
|
+
def search_2_peter_only(request:str) -> str:
|
|
1046
|
+
"""search the book of 2 Peter only; search string must be given"""
|
|
1047
|
+
global search_bible
|
|
1048
|
+
return search_bible(request, book=61)
|
|
1049
|
+
|
|
1050
|
+
@mcp.tool
|
|
1051
|
+
def search_1_john_only(request:str) -> str:
|
|
1052
|
+
"""search the book of 1 John only; search string must be given"""
|
|
1053
|
+
global search_bible
|
|
1054
|
+
return search_bible(request, book=62)
|
|
1055
|
+
|
|
1056
|
+
@mcp.tool
|
|
1057
|
+
def search_2_john_only(request:str) -> str:
|
|
1058
|
+
"""search the book of 2 John only; search string must be given"""
|
|
1059
|
+
global search_bible
|
|
1060
|
+
return search_bible(request, book=63)
|
|
1061
|
+
|
|
1062
|
+
@mcp.tool
|
|
1063
|
+
def search_3_john_only(request:str) -> str:
|
|
1064
|
+
"""search the book of 3 John only; search string must be given"""
|
|
1065
|
+
global search_bible
|
|
1066
|
+
return search_bible(request, book=64)
|
|
1067
|
+
|
|
1068
|
+
@mcp.tool
|
|
1069
|
+
def search_jude_only(request:str) -> str:
|
|
1070
|
+
"""search the book of Jude only; search string must be given"""
|
|
1071
|
+
global search_bible
|
|
1072
|
+
return search_bible(request, book=65)
|
|
1073
|
+
|
|
1074
|
+
@mcp.tool
|
|
1075
|
+
def search_revelation_only(request:str) -> str:
|
|
1076
|
+
"""search the book of Revelation only; search string must be given"""
|
|
1077
|
+
global search_bible
|
|
1078
|
+
return search_bible(request, book=66)
|
|
1077
1079
|
|
|
1078
1080
|
@mcp.tool
|
|
1079
1081
|
def compare_bible_translations(request:str) -> str:
|
|
@@ -14,12 +14,20 @@ if args.backend:
|
|
|
14
14
|
if args.model:
|
|
15
15
|
config.model = args.model
|
|
16
16
|
|
|
17
|
-
def
|
|
17
|
+
def run_mcp(full_mcp:bool=False):
|
|
18
|
+
if full_mcp:
|
|
19
|
+
config.full_mcp = True
|
|
18
20
|
builtin_mcp_server = os.path.join(os.path.dirname(os.path.realpath(__file__)), "bible_study_mcp.py")
|
|
19
21
|
user_mcp_server = os.path.join(AGENTMAKE_USER_DIR, "biblemate", "bible_study_mcp.py") # The user path has the same basename as the built-in one; users may copy the built-in server settings to this location for customization.
|
|
20
22
|
mcp_script = readTextFile(user_mcp_server if os.path.isfile(user_mcp_server) else builtin_mcp_server)
|
|
21
23
|
mcp_script = mcp_script.replace("mcp.run(show_banner=False)", f'''mcp.run(show_banner=False, transport="http", host="0.0.0.0", port={args.port if args.port else config.mcp_port})''')
|
|
22
24
|
exec(mcp_script)
|
|
23
25
|
|
|
26
|
+
def mcp():
|
|
27
|
+
run_mcp(full_mcp=True)
|
|
28
|
+
|
|
29
|
+
def mcpmini():
|
|
30
|
+
run_mcp(full_mcp=False)
|
|
31
|
+
|
|
24
32
|
if __name__ == "__main__":
|
|
25
33
|
mcp()
|
|
@@ -50,7 +50,9 @@ def get_system_master_plan() -> str:
|
|
|
50
50
|
"""
|
|
51
51
|
possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "create_action_plan.md")
|
|
52
52
|
possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "create_action_plan.md")
|
|
53
|
-
|
|
53
|
+
system_content = readTextFile(possible_system_file_path_2 if os.path.isfile(possible_system_file_path_2) else possible_system_file_path_1)
|
|
54
|
+
return system_content+"""\n
|
|
55
|
+
- Avoid specifying particular Bible versions (e.g., KJV, NIV) or copyrighted materials unless explicitly supported by the tool's documentation. When retrieving Bible verses or materials is required, simply prompt the tools to retrieve them and defer version selection to the tool's native configuration. To maintain a seamless experience, do not solicit version preferences from the user."""
|
|
54
56
|
|
|
55
57
|
def get_system_improve_prompt_2() -> str:
|
|
56
58
|
"""
|
|
@@ -1330,7 +1330,7 @@ Press `Ctrl+C` once or twice until the running process is cancelled, while you a
|
|
|
1330
1330
|
result = await client.get_prompt(specified_prompt[1:], structured_output)
|
|
1331
1331
|
#print(result, "\n\n")
|
|
1332
1332
|
master_plan = result.messages[0].content.text
|
|
1333
|
-
# display info
|
|
1333
|
+
# display info
|
|
1334
1334
|
display_info(console, Markdown(user_request), title="User Request", border_style=get_border_style())
|
|
1335
1335
|
display_info(console, Markdown(master_plan), title="Master Plan", border_style=get_border_style())
|
|
1336
1336
|
else:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2.64
|
|
@@ -2,7 +2,7 @@ from setuptools import setup
|
|
|
2
2
|
from setuptools.command.install import install
|
|
3
3
|
import os, shutil, platform, sys
|
|
4
4
|
|
|
5
|
-
version = "0.2.
|
|
5
|
+
version = "0.2.64"
|
|
6
6
|
with open(os.path.join("biblemate", "version.txt"), "w", encoding="utf-8") as fileObj:
|
|
7
7
|
fileObj.write(version)
|
|
8
8
|
|
|
@@ -70,6 +70,7 @@ setup(
|
|
|
70
70
|
f"bm={package}.main:main",
|
|
71
71
|
f"{package}={package}.main:main",
|
|
72
72
|
f"{package}mcp={package}.biblematemcp:mcp",
|
|
73
|
+
f"{package}mcpmini={package}.biblematemcp:mcpmini",
|
|
73
74
|
],
|
|
74
75
|
},
|
|
75
76
|
keywords="mcp agent biblemate ai anthropic azure chatgpt cohere deepseek genai github googleai groq llamacpp mistral ollama openai vertexai xai",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.2.62
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{biblemate-0.2.62 → biblemate-0.2.64}/biblemate/etextedit/plugins/Extract Bible References.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|