Skip to main content

포트원 사용자를 위한 MCP (Model Context Protocol) 서버입니다. 포트원 개발자센터, 헬프센터 등 공식 문서 내용을 LLM(Large Language Model)에 제공해 정확한 정보를 바탕으로 사용자의 연동 및 질의를 돕도록 합니다.

Project description

PortOne MCP Server

포트원 사용자를 위한 MCP (Model Context Protocol) 서버입니다. 포트원 개발자센터, 헬프센터 등 공식 문서 내용을 LLM(Large Language Model)에 제공해 정확한 정보를 바탕으로 사용자의 연동 및 질의를 돕도록 합니다.

MCP 서버 등록하기

  1. uv 및 Python 3.12 이상이 설치되어 있어야 합니다.

  2. Claude Desktop -> Settings -> Developer -> Edit Config를 통해 아래 내용을 추가합니다.

    "mcpServers": {
    
      // 기존 설정
    
      "portone-mcp-server": {
        "command": "uvx",
        "args": [
          "portone-mcp-server@latest"
        ]
      }
    }
    
  3. Claude Desktop을 재시작해 portone-mcp-server 및 해당 서버가 제공하는 도구들이 잘 등록되었는지 확인합니다.

  4. Cursor, Windsurf 등 MCP를 지원하는 IDE에 대해서도 동일한 방식으로 MCP 서버를 등록할 수 있습니다.

개발하기

요구사항

  1. 저장소를 클론한 후 필요한 패키지 설치하기

    uv venv
    uv sync --extra dev
    
  2. MCP 서버 실행

    uv run portone-mcp-server
    
  3. 테스트

    uv run pytest
    
  4. 코드 린팅

    uv run ruff check .
    uv run ruff format .
    
  5. 퍼블리싱

    # 먼저 pyproject.toml의 version을 변경합니다.
    rm -rf dist
    uv sync
    uv build
    uv publish
    
  6. 로컬 환경의 MCP 서버 등록하기

    "mcpServers": {
       "portone-mcp-server": {
       "command": "uv",
       "args": [
          "--directory",
          "/your/absolute/path/to/portone-mcp-server",
          "run",
          "portone-mcp-server"
       ]
       }
    }
    
  7. 문서 업데이트하기

    요구사항:

    • 로컬에 developers.portone.io, help.portone.io 저장소가 클론되어 있어야 합니다.
    • nvm (Node Version Manager) 및 노드 20, 23 버전이 설치되어 있어야 합니다.
    • corepack이 설치되어 있어야 합니다.

    developers.portone.io 저장소에서 생성된 문서를 MCP 서버에 업데이트하려면 다음과 같이 실행합니다:

    # 환경 변수를 사용하는 방법
    export DEVELOPERS_PORTONE_IO_PATH="/path/to/developers.portone.io"
    export HELP_PORTONE_IO_PATH="/path/to/help.portone.io"
    uv run update_docs.py
    
    # 또는 대화형으로 실행
    uv run update_docs.py
    # 프롬프트가 표시되면 developers.portone.io, help.portone.io 저장소 경로 입력
    

    이 스크립트는 다음을 수행합니다:

    1. developers.portone.io, help.portone.io 저장소에서 pnpm docs-for-llms 명령을 실행 (로컬에 설정된 브랜치 기준으로 문서 생성)
    2. MCP 서버의 docs 디렉토리를 새로 생성된 내용으로 교체
    3. 개발자센터, 헬프센터 외 일부 문서 다운로드 및 교체

라이선스

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portone_mcp_server-0.8.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portone_mcp_server-0.8.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file portone_mcp_server-0.8.0.tar.gz.

File metadata

  • Download URL: portone_mcp_server-0.8.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for portone_mcp_server-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4513337eafa4473fb6959509a18399d17dfaa604615c4c6aab9c01cd811e7fe4
MD5 d91703c48a88def8d144f10a3a26090a
BLAKE2b-256 bb86768835707322e1d127811fb4cb1331ee806e19c6de9faa81f587666625ed

See more details on using hashes here.

File details

Details for the file portone_mcp_server-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for portone_mcp_server-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed3f45f89a731d177359772afda1064f82ea046f148ca06868d18c53e76d7744
MD5 cbfeb41bf51a02a70890e383035f9f37
BLAKE2b-256 80409e2cfec605873b79fa80d53569c7b1efbf1489f0914c5a8ff93a12b75e03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page