ai-creatrip-mcp
v1.5.1
Published
Model Context Protocol 프록시 서버 CLI 도구
Maintainers
Readme
AI Creatrip MCP
AI Creatrip MCP는 로컬에서 동작하는 여러 Model Context Protocol(MCP) 서버를 단일 인터페이스로 통합하고 ai.creatrip.com에서 사용할 수 있게 돕는 도구입니다.
설치
NPM을 통한 전역 설치
npm install -g ai-creatrip-mcpPNPM을 통한 전역 설치
pnpm add -g ai-creatrip-mcp사용법
서버 실행
ai-creatrip-mcp옵션
ai-creatrip-mcp --help기본 옵션:
-k, --key <path>: SSL 키 파일 경로 (기본값:./localhost+1-key.pem)-C, --cert <path>: SSL 인증서 파일 경로 (기본값:./localhost+1.pem)-p, --port <number>: 서버 포트 (기본값:6277)
설정 방법
이 프록시 서버는 설정 파일을 사용하지 않고, 서버 실행 후 /config 엔드포인트를 통해 동적으로 설정을 주입받습니다. ai.creatrip.com에서 자동으로 설정을 관리하므로 별도의 설정이 필요하지 않습니다.
설정 형식은 다음과 같은 JSON 구조를 따릅니다:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["@modelcontextprotocol/github", "serve"],
"env": {
"GITHUB_TOKEN": "your-github-token"
}
},
"custom-server": {
"command": "/path/to/custom/server",
"args": ["--option", "value"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}수동으로 설정 주입하기
필요한 경우 다음과 같이 curl 명령을 사용하여 수동으로 설정을 주입할 수 있습니다:
curl -X POST https://localhost:6277/config \
-H "Content-Type: application/json" \
-d '{"mcpServers":{"github":{"command":"npx","args":["@modelcontextprotocol/github","serve"],"env":{"GITHUB_TOKEN":"your-github-token"}}}}' \
--insecure개발
의존성 설치:
pnpm install빌드:
pnpm run build로컬에서 실행:
node build/cli.jsSSL 인증서
사용을 위해 SSL 인증서가 필요합니다. mkcert를 사용하여 로컬 인증서를 생성할 수 있습니다:
# mkcert 설치
brew install mkcert # macOS
# 인증서 생성
mkcert localhost 127.0.0.1생성된 localhost+1.pem과 localhost+1-key.pem 파일을 프로젝트 디렉토리에 복사하세요.
AI 플랫폼과 함께 사용하기
CLI를 실행한 상태에서 ai.creatrip.com에 접속하면 자동으로 MCP 프록시 서버가 인식되고 설정됩니다. 별도의 설정 파일 작성이나 관리가 필요하지 않습니다.
ai-creatrip-mcp명령으로 프록시 서버 실행- ai.creatrip.com 접속
- 자동으로 MCP 서버 연결 및 설정 완료
