关于 codeweaver
专为 AI Agent 打造的语义代码搜索。混合检索、感知 AST,支持 166 种语言的上下文。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
mcp.json · 通用配置
启动命令
uvx code-weaver需要配置的环境变量
CODEWEAVER_CONFIG_FILESpecify a custom config file path for CodeWeaver. Only needed if not using the default locations.CODEWEAVER_DEBUGEnable debug mode for CodeWeaver.CODEWEAVER_EMBEDDING_API_KEY密钥Specify the API key for the embedding provider, if required. Note: {', '.join([p for p in _providers_for_kind('embedding') if p.])}CODEWEAVER_EMBEDDING_MODELSpecify the embedding model to use.CODEWEAVER_EMBEDDING_PROVIDERSpecify the embedding provider to use.CODEWEAVER_HOSTSet the server host for CodeWeaver.CODEWEAVER_LOG_LEVELSet the log level for CodeWeaver (e.g., DEBUG, INFO, WARNING, ERROR).CODEWEAVER_MCP_PORTSet the MCP server port for CodeWeaver if using http transport for mcp. Not required if using the default port (9328), or stdio transport.CODEWEAVER_PORTSet the port for the codeweaver management server (information and management endpoints).CODEWEAVER_PROFILEUse a premade provider settings profile for CodeWeaver.CODEWEAVER_PROJECT_NAMESet the project name for CodeWeaver.CODEWEAVER_PROJECT_PATHSet the project path for CodeWeaver.CODEWEAVER_RERANKING_API_KEY密钥Specify the API key for the reranking provider, if required.CODEWEAVER_RERANKING_MODELSpecify the reranking model to use.CODEWEAVER_RERANKING_PROVIDERSpecify the reranking provider to use.CODEWEAVER_SPARSE_EMBEDDING_MODELSpecify the sparse embedding model to use.CODEWEAVER_SPARSE_EMBEDDING_PROVIDERSpecify the sparse embedding provider to use.CODEWEAVER_VECTOR_STORE_API_KEY密钥Specify the API key for the vector store, if required.CODEWEAVER_VECTOR_STORE_PORTSpecify the port for the vector store.CODEWEAVER_VECTOR_STORE_PROVIDERSpecify the vector store provider to use.CODEWEAVER_VECTOR_STORE_URLSpecify the URL for the vector store.CODEWEAVER__TELEMETRY__DISABLE_TELEMETRYDisable telemetry data collection.CODEWEAVER__TELEMETRY__TOOLS_OVER_PRIVACYOpt-in to potentially identifying collection of query and search result data. This is invaluable for helping us improve CodeWeaver's search capabilities. If privacy is a higher priority, do not enable this setting.HTTPS_PROXYHTTP proxy for requests (Used by: Azure, Azure, Voyage)OPENAI_API_KEY密钥API key for OpenAI-compatible services (not necessarily an API key *for* OpenAI). The OpenAI client also requires an API key, even if you don't actually need one for your provider (like local Ollama). So provide a dummy key if needed. (Used by: Azure, Cerebras, Deepseek, Fireworks, Github, Groq, Heroku, Moonshot, Ollama, Openai, Openrouter, Perplexity, Together, Vercel, X Ai)OPENAI_LOGOne of: 'debug', 'info', 'warning', 'error' (Used by: Azure, Cerebras, Deepseek, Fireworks, Github, Groq, Heroku, Moonshot, Ollama, Openai, Openrouter, Perplexity, Together, Vercel, X Ai)SSL_CERT_FILEPath to the SSL certificate file for requests (Used by: Azure, Azure, Voyage)AI_GATEWAY_API_KEY密钥API key for Vercel serviceAWS_ACCOUNT_IDAWS Account ID for Bedrock serviceAWS_REGIONAWS region for Bedrock serviceAWS_SECRET_ACCESS_KEY密钥AWS Secret Access Key for Bedrock serviceAZURE_COHERE_API_KEY密钥API key for Azure Cohere service (cohere models on Azure)AZURE_COHERE_ENDPOINTEndpoint for Azure Cohere service (cohere models on Azure)AZURE_COHERE_REGIONRegion for Azure Cohere serviceAZURE_OPENAI_API_KEY密钥API key for Azure OpenAI service (OpenAI models on Azure)AZURE_OPENAI_ENDPOINTEndpoint for Azure OpenAI service (OpenAI models on Azure)AZURE_OPENAI_REGIONRegion for Azure OpenAI service (OpenAI models on Azure)COHERE_API_KEY密钥Your Cohere API KeyCO_API_URLHost URL for Cohere serviceDEEPSEEK_API_KEY密钥API key for DeepSeek serviceGEMINI_API_KEY密钥Your Google Gemini API KeyGOOGLE_API_KEY密钥Your Google API KeyHF_HUB_VERBOSITYLog level for Hugging Face Hub clientHF_TOKEN密钥API key/token for Hugging Face serviceINFERENCE_KEY密钥API key for Heroku serviceINFERENCE_URLHost URL for Heroku serviceMISTRAL_API_KEY密钥Your Mistral API KeyQDRANT__LOG_LEVELLog level for Qdrant serviceQDRANT__SERVICE__API_KEY密钥API key for Qdrant serviceQDRANT__SERVICE__ENABLE_TLSEnable TLS for Qdrant service, expects truthy or false value (e.g. 1 for on, 0 for off).QDRANT__SERVICE__HOSTHostname of the Qdrant service; do not use for URLs with schemes (e.g. 'http://')QDRANT__SERVICE__HTTP_PORTPort number for the Qdrant serviceQDRANT__TLS__CERTPath to the TLS certificate file for Qdrant service. Only needed if using a self-signed certificate. If you're using qdrant-cloud, you don't need this.TAVILY_API_KEY密钥Your Tavily API KeyTOGETHER_API_KEY密钥API key for Together serviceVERCEL_OIDC_TOKEN密钥OIDC token for Vercel serviceVOYAGE_API_KEY密钥API key for Voyage service本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。
工具
还没有获取到工具列表
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
维护者还没有提供详细介绍,可以先查看代码仓库中的 README。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。