# Contextus：MATRIX 的上下文管理与路由中枢（2/3）

### 核心功能概览

#### 快速配置 MCP 服务

Contextus 允许你轻松添加或移除 MCP 服务的配置信息，支持如 Morpheus、Claude、GPT4All、LLaMA 等模型的多客户端适配与管理，无需繁复命令或脚本。

#### 配置集群（Profiles）集中管理

通过“配置文件（Profile）”功能，你可以将多个 MCP 服务分组管理，例如：

* 为个人助理配置轻量模型；
* 为研究场景配置长上下文服务；
* 为企业场景配置私有模型。

可一键激活/停用不同配置集，实现“场景即上下文”的调度体验。

#### 中央注册表服务发现

Contextus 集成了 MCP Server 注册表系统，支持用户发现、浏览并接入社区共享的模型服务，实现从“本地模型”向“全球语义服务”连接的能力拓展。

强大的 MCP 路由器功能

Contextus 内置了一个高性能 MCP 路由守护进程，具备以下能力：

* 将多个 MCP 服务聚合在\*\*同一个本地端口（如 [http://localhost:6276）\*\*；](https://docs.matrix.io/ai-agent/http:/localhost:6276）**；)
* 根据激活的配置文件，智能路由上下文请求至对应模型；
* 支持会话复用，实现**多个客户端共享模型连接与上下文状态**；
* 提供热切换机制，支持在不中断应用的前提下切换底层服务。

#### 命令行界面（CLI）控制一切

所有配置、激活、路由控制、服务查询等操作均可通过 Contextus 的 CLI 工具完成，极大简化了部署与运维复杂度。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.matrix.io/ai-agent/contextusmatrix-de-shang-xia-wen-guan-li-yu-lu-you-zhong-shu-23.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
