iflow-mcp_howe829-websearch-mcp-server 0.1.2__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 CHANGED
@@ -2,7 +2,12 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
2
2
 
3
3
 
4
4
  class Settings(BaseSettings):
5
- model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
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
12
  bing_search_base_url: str = "https://www.bing.com"
8
13
  google_search_base_url: str = "https://www.google.com"
@@ -17,4 +22,21 @@ class Settings(BaseSettings):
17
22
  llm_model_name: str = "gpt-4"
18
23
 
19
24
 
20
- settings = Settings()
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iflow-mcp_howe829-websearch-mcp-server
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Add your description here
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.11
@@ -1,4 +1,4 @@
1
- config.py,sha256=vQ0jlI2hz1VW-NjHwBPw4PfY8F68h3gw7bgwdluy2t8,608
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.2.dist-info/METADATA,sha256=OewctOcoQJfADZQYD8gd8d1ADhmgTu9kuGD7QbDAEvw,2458
18
- iflow_mcp_howe829_websearch_mcp_server-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
19
- iflow_mcp_howe829_websearch_mcp_server-0.1.2.dist-info/entry_points.txt,sha256=iILKixFfn48v6KB6N8J_cw2DaW4eU6fdzHqhg5XYLDc,53
20
- iflow_mcp_howe829_websearch_mcp_server-0.1.2.dist-info/licenses/LICENSE,sha256=sWqgeExPhDaW2FhUEKSl7rsxIfMzSgo8Nj8i0ilWnJs,1072
21
- iflow_mcp_howe829_websearch_mcp_server-0.1.2.dist-info/RECORD,,
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,,