
Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
typingmind/typingmind-mcp - кандидат на сервер MCP, импортированный из https://github.com/typingmind/typingmind-mcp.
Обзор
typingmind/typingmind-mcp - кандидат на сервер MCP, импортированный из https://github.com/typingmind/typingmind-mcp.
Обзор (машинный перевод)
MCP Connector - это легкий сервер, который может запускать и управлять несколькими серверами протокола Model Context Protocol (MCP), специально разработанными для интеграции с TypingMind. Он обеспечивает простой способ запуска MCP-серверов на локальном компьютере или удаленном сервере, что позволяет подключать пользовательские модели или инструменты ИИ с помощью TypingMind через простой REST API.
Как работать на локальном устройстве
Вы можете быстро запустить MCP Connector, используя npx (не требуется установка):
Замените токеном аутентификации, предоставленным TypingMind.
Вы также можете предоставить токен auth через переменную среды:
Продолжайте процесс, пока вы используете TypingMind.
Поддержка HTTPS
Чтобы включить HTTPS, установите следующие переменные среды:
- [[Т2]]: Путь к файлу SSL-сертификата
- [[Т3]]: Путь к вашему файлу закрытого ключа SSL
Когда обе переменные установлены, сервер будет использовать HTTPS вместо HTTP.
Как работать на сервере
Если вы предпочитаете использовать MCP Connector на удаленном сервере:
- Установить Node.js (версия 14 или более поздняя).
- Запустите сервер, используя
npx:
Чтобы работать с HTTPS:
Альтернативно, для постоянного бега (например.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP Connector
MCP Connector is a lightweight server that can run and manage multiple Model Context Protocol (MCP) servers, specifically designed to integrate with TypingMind. It provides an easy way to run MCP servers on your local computer or a remote server, making it possible to connect your custom AI models or tools with TypingMind through a simple REST API.
How to Run on Your Local Device
You can quickly start the MCP Connector using npx (no install required):
npx @typingmind/mcp@latest
- Replace `` with your authentication token provided by TypingMind.
You can also provide the auth token via an environment variable:
MCP_AUTH_TOKEN= npx @typingmind/mcp@latest
Keep the process running while you use TypingMind.
HTTPS Support
To enable HTTPS, set the following environment variables:
CERTFILE=./path/to/certificate.crt KEYFILE=./path/to/privatekey.key npx @typingmind/mcp@latest
CERTFILE: Path to your SSL certificate fileKEYFILE: Path to your SSL private key file
When both variables are set, the server will use HTTPS instead of HTTP.
How to Run on a Server
If you prefer running the MCP Connector on a remote server:
-
Install Node.js (version 14 or later).
-
Run the server using
npx:npx @typingmind/mcp@latestTo run with HTTPS:
CERTFILE=./path/to/certificate.crt KEYFILE=./path/to/privatekey.key npx @typingmind/mcp@latestAlternatively, for persistent running (e.g., after closing SSH), you may use a process manager like pm2 or
screen/tmux:pm2 start npx -- @typingmind/mcp@latest
How to Run with Docker
You can also run the MCP Connector using Docker.
-
Build the Docker Image: Navigate to the project’s root directory (where the
Dockerfileis located) and run:docker build -t mcp-connector .(You can replace
mcp-connectorwith your preferred image tag.) -
Run the Docker Container:
-
Basic Run (HTTP): Replace `` with your actual token. This command runs the container in detached mode (
-d) and maps the container’s default port50880to the same port on your host machine.docker run -d -p 50880:50880 --name mcp-connector-instance mcp-connector -
Using a Different Port: If you need to use a different port (e.g., 8080 on the host mapped to 12345 in the container), use the
-pflag for mapping and the-e PORTenvironment variable:docker run -d -p 8080:12345 -e PORT=12345 --name mcp-connector-instance mcp-connector -
Running with HTTPS:
-
Установка
npx @typingmind/mcp@latest <auth-token>