iflow-mcp_howe829-websearch-mcp-server 0.1.1__py3-none-any.whl → 0.1.3__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.
- config.py +35 -13
- {iflow_mcp_howe829_websearch_mcp_server-0.1.1.dist-info → iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info}/METADATA +1 -1
- {iflow_mcp_howe829_websearch_mcp_server-0.1.1.dist-info → iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info}/RECORD +6 -6
- {iflow_mcp_howe829_websearch_mcp_server-0.1.1.dist-info → iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info}/WHEEL +0 -0
- {iflow_mcp_howe829_websearch_mcp_server-0.1.1.dist-info → iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info}/entry_points.txt +0 -0
- {iflow_mcp_howe829_websearch_mcp_server-0.1.1.dist-info → iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info}/licenses/LICENSE +0 -0
config.py
CHANGED
|
@@ -2,19 +2,41 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class Settings(BaseSettings):
|
|
5
|
-
model_config = SettingsConfigDict(
|
|
5
|
+
model_config = SettingsConfigDict(
|
|
6
|
+
env_file=".env",
|
|
7
|
+
env_file_encoding="utf-8",
|
|
8
|
+
extra="ignore",
|
|
9
|
+
case_sensitive=False
|
|
10
|
+
)
|
|
6
11
|
|
|
7
|
-
bing_search_base_url: str
|
|
8
|
-
google_search_base_url: str
|
|
9
|
-
cc: str
|
|
10
|
-
language: str
|
|
11
|
-
impersonate: str
|
|
12
|
-
host: str
|
|
13
|
-
port: int
|
|
14
|
-
server_mode: str
|
|
15
|
-
llm_base_url: str
|
|
16
|
-
llm_api_key: str
|
|
17
|
-
llm_model_name: str
|
|
12
|
+
bing_search_base_url: str = "https://www.bing.com"
|
|
13
|
+
google_search_base_url: str = "https://www.google.com"
|
|
14
|
+
cc: str = "us"
|
|
15
|
+
language: str = "en"
|
|
16
|
+
impersonate: str = "edge"
|
|
17
|
+
host: str = "127.0.0.1"
|
|
18
|
+
port: int = 8002
|
|
19
|
+
server_mode: str = "stdio"
|
|
20
|
+
llm_base_url: str = "https://api.openai.com/v1"
|
|
21
|
+
llm_api_key: str = "sk-test-key"
|
|
22
|
+
llm_model_name: str = "gpt-4"
|
|
18
23
|
|
|
19
24
|
|
|
20
|
-
|
|
25
|
+
try:
|
|
26
|
+
settings = Settings()
|
|
27
|
+
except Exception as e:
|
|
28
|
+
import os
|
|
29
|
+
print(f"Settings init error: {e}")
|
|
30
|
+
settings = Settings(
|
|
31
|
+
bing_search_base_url=os.getenv("BING_SEARCH_BASE_URL", "https://www.bing.com"),
|
|
32
|
+
google_search_base_url=os.getenv("GOOGLE_SEARCH_BASE_URL", "https://www.google.com"),
|
|
33
|
+
cc=os.getenv("CC", "us"),
|
|
34
|
+
language=os.getenv("LANGUAGE", "en"),
|
|
35
|
+
impersonate=os.getenv("IMPERSONATE", "edge"),
|
|
36
|
+
host=os.getenv("HOST", "127.0.0.1"),
|
|
37
|
+
port=int(os.getenv("PORT", "8002")),
|
|
38
|
+
server_mode=os.getenv("SERVER_MODE", "stdio"),
|
|
39
|
+
llm_base_url=os.getenv("LLM_BASE_URL", "https://api.openai.com/v1"),
|
|
40
|
+
llm_api_key=os.getenv("LLM_API_KEY", "sk-test-key"),
|
|
41
|
+
llm_model_name=os.getenv("LLM_MODEL_NAME", "gpt-4")
|
|
42
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
config.py,sha256=
|
|
1
|
+
config.py,sha256=MHb2hCPjhyEb3W-o3rcfNtqFzCinHtCeRyzjU6JyOwI,1443
|
|
2
2
|
http_client.py,sha256=S5n21NcVI27C4nMMgssHFEB3LR8vMGaUqtPAYMkjJvI,2214
|
|
3
3
|
server.py,sha256=W8UcidG39nqAIzPO_cpaNeohTQ4WGLD5Nki0pbWvLTA,5549
|
|
4
4
|
providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -14,8 +14,8 @@ xagents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
14
14
|
xagents/agent.py,sha256=kKXNywezkhqOUeojP8vEkSk9f1EKtUG8pa3DRmLV6uA,2333
|
|
15
15
|
xagents/query_optimizer.py,sha256=Z8Sz4Lpkyfnl0PoVv6tuXv3eGYBXPFZiZg-rmHu1Vvc,2677
|
|
16
16
|
xagents/result_formatter.py,sha256=le9Nw4WLayUoWZqqvAYjgb1J2BEvXqtCvkEgdYqC018,2195
|
|
17
|
-
iflow_mcp_howe829_websearch_mcp_server-0.1.
|
|
18
|
-
iflow_mcp_howe829_websearch_mcp_server-0.1.
|
|
19
|
-
iflow_mcp_howe829_websearch_mcp_server-0.1.
|
|
20
|
-
iflow_mcp_howe829_websearch_mcp_server-0.1.
|
|
21
|
-
iflow_mcp_howe829_websearch_mcp_server-0.1.
|
|
17
|
+
iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info/METADATA,sha256=iQF8G4JJgR-d5Lw7Rin8hHTGMYiw7dOlWN3FDsoZK_s,2458
|
|
18
|
+
iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
19
|
+
iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info/entry_points.txt,sha256=iILKixFfn48v6KB6N8J_cw2DaW4eU6fdzHqhg5XYLDc,53
|
|
20
|
+
iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info/licenses/LICENSE,sha256=sWqgeExPhDaW2FhUEKSl7rsxIfMzSgo8Nj8i0ilWnJs,1072
|
|
21
|
+
iflow_mcp_howe829_websearch_mcp_server-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|