Files
NexQuant/rdagent/components/agent/context7/conf.py
T
XianBW dc7b732b2c feat: add a rag mcp in proposal (#1267)
* add simple rag mcp

* add rag_agent in expGen v2

* add conf config for research rag

* fix CI

* refactor: move context7 and rag config files to new conf modules

* make rag agent general

* fix CI

---------

Co-authored-by: Young <afe.young@gmail.com>
2025-10-20 16:46:25 +08:00

32 lines
801 B
Python

"""
The context7 is based on a modified version of the context7.
You can follow the instructions to install it
mkdir -p ~/tmp/
cd ~/tmp/ && git clone https://github.com/Hoder-zyf/context7.git
cd ~/tmp/context7
npm install -g bun
bun i && bun run build
bun run dist/index.js --transport http --port 8124 # > bun.out 2>&1 &
"""
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
"""Project specific settings."""
url: str = "http://localhost:8124/mcp"
timeout: int = 120
enable_cache: bool = False
# set CONTEXT7_ENABLE_CACHE=true in .env to enable cache
model_config = SettingsConfigDict(
env_prefix="CONTEXT7_",
# extra="allow", # Does it allow extrasettings
)
SETTINGS = Settings()