biblemate 0.2.63__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.
Files changed (32) hide show
  1. {biblemate-0.2.63 → biblemate-0.2.64}/PKG-INFO +1 -1
  2. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/bible_study_mcp.py +397 -395
  3. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/biblematemcp.py +9 -1
  4. biblemate-0.2.64/biblemate/version.txt +1 -0
  5. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate.egg-info/PKG-INFO +1 -1
  6. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate.egg-info/entry_points.txt +1 -0
  7. {biblemate-0.2.63 → biblemate-0.2.64}/setup.py +2 -1
  8. biblemate-0.2.63/biblemate/version.txt +0 -1
  9. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/README.md +0 -0
  10. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/__init__.py +0 -0
  11. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/api/add_vector.py +0 -0
  12. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/api/api.py +0 -0
  13. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/api/bible.py +0 -0
  14. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/api/dialogs.py +0 -0
  15. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/api/search.py +0 -0
  16. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/config.py +0 -0
  17. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/core/systems.py +0 -0
  18. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/etextedit/README.md +0 -0
  19. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/etextedit/plugins/Extract Bible References.py +0 -0
  20. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/etextedit/plugins/Insert Bible Text.py +0 -0
  21. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/main.py +0 -0
  22. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/package_name.txt +0 -0
  23. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/requirements.txt +0 -0
  24. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/ui/info.py +0 -0
  25. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/ui/prompts.py +0 -0
  26. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/ui/selection_dialog.py +0 -0
  27. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate/ui/text_area.py +0 -0
  28. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate.egg-info/SOURCES.txt +0 -0
  29. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate.egg-info/dependency_links.txt +0 -0
  30. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate.egg-info/requires.txt +0 -0
  31. {biblemate-0.2.63 → biblemate-0.2.64}/biblemate.egg-info/top_level.txt +0 -0
  32. {biblemate-0.2.63 → biblemate-0.2.64}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biblemate
3
- Version: 0.2.63
3
+ Version: 0.2.64
4
4
  Summary: BibleMate AI - Automate Your Bible Study
5
5
  Home-page: https://biblemate.ai
6
6
  Author: Eliran Wong
@@ -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
- @mcp.tool
683
- def search_genesis_only(request:str) -> str:
684
- """search the book of Genesis only; search string must be given"""
685
- global search_bible
686
- return search_bible(request, book=1)
687
-
688
- @mcp.tool
689
- def search_exodus_only(request:str) -> str:
690
- """search the book of Exodus only; search string must be given"""
691
- global search_bible
692
- return search_bible(request, book=2)
693
-
694
- @mcp.tool
695
- def search_leviticus_only(request:str) -> str:
696
- """search the book of Leviticus only; search string must be given"""
697
- global search_bible
698
- return search_bible(request, book=3)
699
-
700
- @mcp.tool
701
- def search_numbers_only(request:str) -> str:
702
- """search the book of Numbers only; search string must be given"""
703
- global search_bible
704
- return search_bible(request, book=4)
705
-
706
- @mcp.tool
707
- def search_deuteronomy_only(request:str) -> str:
708
- """search the book of Deuteronomy only; search string must be given"""
709
- global search_bible
710
- return search_bible(request, book=5)
711
-
712
- @mcp.tool
713
- def search_joshua_only(request:str) -> str:
714
- """search the book of Joshua only; search string must be given"""
715
- global search_bible
716
- return search_bible(request, book=6)
717
-
718
- @mcp.tool
719
- def search_judges_only(request:str) -> str:
720
- """search the book of Judges only; search string must be given"""
721
- global search_bible
722
- return search_bible(request, book=7)
723
-
724
- @mcp.tool
725
- def search_ruth_only(request:str) -> str:
726
- """search the book of Ruth only; search string must be given"""
727
- global search_bible
728
- return search_bible(request, book=8)
729
-
730
- @mcp.tool
731
- def search_1_samuel_only(request:str) -> str:
732
- """search the book of 1 Samuel only; search string must be given"""
733
- global search_bible
734
- return search_bible(request, book=9)
735
-
736
- @mcp.tool
737
- def search_2_samuel_only(request:str) -> str:
738
- """search the book of 2 Samuel only; search string must be given"""
739
- global search_bible
740
- return search_bible(request, book=10)
741
-
742
- @mcp.tool
743
- def search_1_kings_only(request:str) -> str:
744
- """search the book of 1 Kings only; search string must be given"""
745
- global search_bible
746
- return search_bible(request, book=11)
747
-
748
- @mcp.tool
749
- def search_2_kings_only(request:str) -> str:
750
- """search the book of 2 Kings only; search string must be given"""
751
- global search_bible
752
- return search_bible(request, book=12)
753
-
754
- @mcp.tool
755
- def search_1_chronicles_only(request:str) -> str:
756
- """search the book of 1 Chronicles only; search string must be given"""
757
- global search_bible
758
- return search_bible(request, book=13)
759
-
760
- @mcp.tool
761
- def search_2_chronicles_only(request:str) -> str:
762
- """search the book of 2 Chronicles only; search string must be given"""
763
- global search_bible
764
- return search_bible(request, book=14)
765
-
766
- @mcp.tool
767
- def search_ezra_only(request:str) -> str:
768
- """search the book of Ezra only; search string must be given"""
769
- global search_bible
770
- return search_bible(request, book=15)
771
-
772
- @mcp.tool
773
- def search_nehemiah_only(request:str) -> str:
774
- """search the book of Nehemiah only; search string must be given"""
775
- global search_bible
776
- return search_bible(request, book=16)
777
-
778
- @mcp.tool
779
- def search_esther_only(request:str) -> str:
780
- """search the book of Esther only; search string must be given"""
781
- global search_bible
782
- return search_bible(request, book=17)
783
-
784
- @mcp.tool
785
- def search_job_only(request:str) -> str:
786
- """search the book of Job only; search string must be given"""
787
- global search_bible
788
- return search_bible(request, book=18)
789
-
790
- @mcp.tool
791
- def search_psalms_only(request:str) -> str:
792
- """search the book of Psalms only; search string must be given"""
793
- global search_bible
794
- return search_bible(request, book=19)
795
-
796
- @mcp.tool
797
- def search_proverbs_only(request:str) -> str:
798
- """search the book of Proverbs only; search string must be given"""
799
- global search_bible
800
- return search_bible(request, book=20)
801
-
802
- @mcp.tool
803
- def search_ecclesiastes_only(request:str) -> str:
804
- """search the book of Ecclesiastes only; search string must be given"""
805
- global search_bible
806
- return search_bible(request, book=21)
807
-
808
- @mcp.tool
809
- def search_song_of_songs_only(request:str) -> str:
810
- """search the book of Song of Songs only; search string must be given"""
811
- global search_bible
812
- return search_bible(request, book=22)
813
-
814
- @mcp.tool
815
- def search_isaiah_only(request:str) -> str:
816
- """search the book of Isaiah only; search string must be given"""
817
- global search_bible
818
- return search_bible(request, book=23)
819
-
820
- @mcp.tool
821
- def search_jeremiah_only(request:str) -> str:
822
- """search the book of Jeremiah only; search string must be given"""
823
- global search_bible
824
- return search_bible(request, book=24)
825
-
826
- @mcp.tool
827
- def search_lamentations_only(request:str) -> str:
828
- """search the book of Lamentations only; search string must be given"""
829
- global search_bible
830
- return search_bible(request, book=25)
831
-
832
- @mcp.tool
833
- def search_ezekiel_only(request:str) -> str:
834
- """search the book of Ezekiel only; search string must be given"""
835
- global search_bible
836
- return search_bible(request, book=26)
837
-
838
- @mcp.tool
839
- def search_daniel_only(request:str) -> str:
840
- """search the book of Daniel only; search string must be given"""
841
- global search_bible
842
- return search_bible(request, book=27)
843
-
844
- @mcp.tool
845
- def search_hosea_only(request:str) -> str:
846
- """search the book of Hosea only; search string must be given"""
847
- global search_bible
848
- return search_bible(request, book=28)
849
-
850
- @mcp.tool
851
- def search_joel_only(request:str) -> str:
852
- """search the book of Joel only; search string must be given"""
853
- global search_bible
854
- return search_bible(request, book=29)
855
-
856
- @mcp.tool
857
- def search_amos_only(request:str) -> str:
858
- """search the book of Amos only; search string must be given"""
859
- global search_bible
860
- return search_bible(request, book=30)
861
-
862
- @mcp.tool
863
- def search_obadiah_only(request:str) -> str:
864
- """search the book of Obadiah only; search string must be given"""
865
- global search_bible
866
- return search_bible(request, book=31)
867
-
868
- @mcp.tool
869
- def search_jonah_only(request:str) -> str:
870
- """search the book of Jonah only; search string must be given"""
871
- global search_bible
872
- return search_bible(request, book=32)
873
-
874
- @mcp.tool
875
- def search_micah_only(request:str) -> str:
876
- """search the book of Micah only; search string must be given"""
877
- global search_bible
878
- return search_bible(request, book=33)
879
-
880
- @mcp.tool
881
- def search_nahum_only(request:str) -> str:
882
- """search the book of Nahum only; search string must be given"""
883
- global search_bible
884
- return search_bible(request, book=34)
885
-
886
- @mcp.tool
887
- def search_habakkuk_only(request:str) -> str:
888
- """search the book of Habakkuk only; search string must be given"""
889
- global search_bible
890
- return search_bible(request, book=35)
891
-
892
- @mcp.tool
893
- def search_zephaniah_only(request:str) -> str:
894
- """search the book of Zephaniah only; search string must be given"""
895
- global search_bible
896
- return search_bible(request, book=36)
897
-
898
- @mcp.tool
899
- def search_haggai_only(request:str) -> str:
900
- """search the book of Haggai only; search string must be given"""
901
- global search_bible
902
- return search_bible(request, book=37)
903
-
904
- @mcp.tool
905
- def search_zechariah_only(request:str) -> str:
906
- """search the book of Zechariah only; search string must be given"""
907
- global search_bible
908
- return search_bible(request, book=38)
909
-
910
- @mcp.tool
911
- def search_malachi_only(request:str) -> str:
912
- """search the book of Malachi only; search string must be given"""
913
- global search_bible
914
- return search_bible(request, book=39)
915
-
916
- @mcp.tool
917
- def search_matthew_only(request:str) -> str:
918
- """search the book of Matthew only; search string must be given"""
919
- global search_bible
920
- return search_bible(request, book=40)
921
-
922
- @mcp.tool
923
- def search_mark_only(request:str) -> str:
924
- """search the book of Mark only; search string must be given"""
925
- global search_bible
926
- return search_bible(request, book=41)
927
-
928
- @mcp.tool
929
- def search_luke_only(request:str) -> str:
930
- """search the book of Luke only; search string must be given"""
931
- global search_bible
932
- return search_bible(request, book=42)
933
-
934
- @mcp.tool
935
- def search_john_only(request:str) -> str:
936
- """search the book of John only; search string must be given"""
937
- global search_bible
938
- return search_bible(request, book=43)
939
-
940
- @mcp.tool
941
- def search_acts_only(request:str) -> str:
942
- """search the book of Acts only; search string must be given"""
943
- global search_bible
944
- return search_bible(request, book=44)
945
-
946
- @mcp.tool
947
- def search_romans_only(request:str) -> str:
948
- """search the book of Romans only; search string must be given"""
949
- global search_bible
950
- return search_bible(request, book=45)
951
-
952
- @mcp.tool
953
- def search_1_corinthians_only(request:str) -> str:
954
- """search the book of 1 Corinthians only; search string must be given"""
955
- global search_bible
956
- return search_bible(request, book=46)
957
-
958
- @mcp.tool
959
- def search_2_corinthians_only(request:str) -> str:
960
- """search the book of 2 Corinthians only; search string must be given"""
961
- global search_bible
962
- return search_bible(request, book=47)
963
-
964
- @mcp.tool
965
- def search_galatians_only(request:str) -> str:
966
- """search the book of Galatians only; search string must be given"""
967
- global search_bible
968
- return search_bible(request, book=48)
969
-
970
- @mcp.tool
971
- def search_ephesians_only(request:str) -> str:
972
- """search the book of Ephesians only; search string must be given"""
973
- global search_bible
974
- return search_bible(request, book=49)
975
-
976
- @mcp.tool
977
- def search_philippians_only(request:str) -> str:
978
- """search the book of Philippians only; search string must be given"""
979
- global search_bible
980
- return search_bible(request, book=50)
981
-
982
- @mcp.tool
983
- def search_colossians_only(request:str) -> str:
984
- """search the book of Colossians only; search string must be given"""
985
- global search_bible
986
- return search_bible(request, book=51)
987
-
988
- @mcp.tool
989
- def search_1_thessalonians_only(request:str) -> str:
990
- """search the book of 1 Thessalonians only; search string must be given"""
991
- global search_bible
992
- return search_bible(request, book=52)
993
-
994
- @mcp.tool
995
- def search_2_thessalonians_only(request:str) -> str:
996
- """search the book of 2 Thessalonians only; search string must be given"""
997
- global search_bible
998
- return search_bible(request, book=53)
999
-
1000
- @mcp.tool
1001
- def search_1_timothy_only(request:str) -> str:
1002
- """search the book of 1 Timothy only; search string must be given"""
1003
- global search_bible
1004
- return search_bible(request, book=54)
1005
-
1006
- @mcp.tool
1007
- def search_2_timothy_only(request:str) -> str:
1008
- """search the book of 2 Timothy only; search string must be given"""
1009
- global search_bible
1010
- return search_bible(request, book=55)
1011
-
1012
- @mcp.tool
1013
- def search_titus_only(request:str) -> str:
1014
- """search the book of Titus only; search string must be given"""
1015
- global search_bible
1016
- return search_bible(request, book=56)
1017
-
1018
- @mcp.tool
1019
- def search_philemon_only(request:str) -> str:
1020
- """search the book of Philemon only; search string must be given"""
1021
- global search_bible
1022
- return search_bible(request, book=57)
1023
-
1024
- @mcp.tool
1025
- def search_hebrews_only(request:str) -> str:
1026
- """search the book of Hebrews only; search string must be given"""
1027
- global search_bible
1028
- return search_bible(request, book=58)
1029
-
1030
- @mcp.tool
1031
- def search_james_only(request:str) -> str:
1032
- """search the book of James only; search string must be given"""
1033
- global search_bible
1034
- return search_bible(request, book=59)
1035
-
1036
- @mcp.tool
1037
- def search_1_peter_only(request:str) -> str:
1038
- """search the book of 1 Peter only; search string must be given"""
1039
- global search_bible
1040
- return search_bible(request, book=60)
1041
-
1042
- @mcp.tool
1043
- def search_2_peter_only(request:str) -> str:
1044
- """search the book of 2 Peter only; search string must be given"""
1045
- global search_bible
1046
- return search_bible(request, book=61)
1047
-
1048
- @mcp.tool
1049
- def search_1_john_only(request:str) -> str:
1050
- """search the book of 1 John only; search string must be given"""
1051
- global search_bible
1052
- return search_bible(request, book=62)
1053
-
1054
- @mcp.tool
1055
- def search_2_john_only(request:str) -> str:
1056
- """search the book of 2 John only; search string must be given"""
1057
- global search_bible
1058
- return search_bible(request, book=63)
1059
-
1060
- @mcp.tool
1061
- def search_3_john_only(request:str) -> str:
1062
- """search the book of 3 John only; search string must be given"""
1063
- global search_bible
1064
- return search_bible(request, book=64)
1065
-
1066
- @mcp.tool
1067
- def search_jude_only(request:str) -> str:
1068
- """search the book of Jude only; search string must be given"""
1069
- global search_bible
1070
- return search_bible(request, book=65)
1071
-
1072
- @mcp.tool
1073
- def search_revelation_only(request:str) -> str:
1074
- """search the book of Revelation only; search string must be given"""
1075
- global search_bible
1076
- return search_bible(request, book=66)
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 mcp():
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()
@@ -0,0 +1 @@
1
+ 0.2.64
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biblemate
3
- Version: 0.2.63
3
+ Version: 0.2.64
4
4
  Summary: BibleMate AI - Automate Your Bible Study
5
5
  Home-page: https://biblemate.ai
6
6
  Author: Eliran Wong
@@ -1,4 +1,5 @@
1
1
  [console_scripts]
2
2
  biblemate = biblemate.main:main
3
3
  biblematemcp = biblemate.biblematemcp:mcp
4
+ biblematemcpmini = biblemate.biblematemcp:mcpmini
4
5
  bm = biblemate.main:main
@@ -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.63"
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.63
File without changes
File without changes