Add MCP server for pypandoc-hwpx#4
Open
justinyoo wants to merge 13 commits into
Open
Conversation
Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/70275bcd-6403-424d-9211-088f1956dfbc
Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/cda75b24-ef05-475e-8579-d7d9ecb874ed
Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/cda75b24-ef05-475e-8579-d7d9ecb874ed
Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/9c8868b5-cef1-4687-b957-4b92ab81e8b2
Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/9c8868b5-cef1-4687-b957-4b92ab81e8b2
The Dockerfile references files from both the repo root (setup.py, pypandoc_hwpx/) and the mcp/ subdirectory. When it lived inside mcp/, running 'docker build .' from that directory failed because the build context couldn't reach parent directory files. Moving it to the repo root lets 'docker build .' work naturally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
FastMCP.run() only accepts 'transport' and 'mount_path' parameters. host and port must be configured on the FastMCP instance (via mcp.settings) before calling run(). The previous code incorrectly passed them as kwargs to run(), causing a TypeError when --http was used. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Initial plan * Add MCP server with docx_to_hwpx, html_to_hwpx, and md_to_hwpx tools Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/70275bcd-6403-424d-9211-088f1956dfbc * Add Dockerfile for MCP server Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/cda75b24-ef05-475e-8579-d7d9ecb874ed * Use uv pip install for consistency in Dockerfile Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/cda75b24-ef05-475e-8579-d7d9ecb874ed * Default Dockerfile to stdio, add --port flag for HTTP transport Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/9c8868b5-cef1-4687-b957-4b92ab81e8b2 * Improve type annotation for kwargs in server.py Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Agent-Logs-Url: https://github.com/justinyoo/pypandoc-hwpx/sessions/9c8868b5-cef1-4687-b957-4b92ab81e8b2 * Move Dockerfile from mcp/ to repo root to fix build context The Dockerfile references files from both the repo root (setup.py, pypandoc_hwpx/) and the mcp/ subdirectory. When it lived inside mcp/, running 'docker build .' from that directory failed because the build context couldn't reach parent directory files. Moving it to the repo root lets 'docker build .' work naturally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix HTTP transport: pass host/port via mcp.settings, not mcp.run() FastMCP.run() only accepts 'transport' and 'mount_path' parameters. host and port must be configured on the FastMCP instance (via mcp.settings) before calling run(). The previous code incorrectly passed them as kwargs to run(), causing a TypeError when --http was used. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update MCP server definitions * Update README for MCP --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: justinyoo <1538528+justinyoo@users.noreply.github.com> Co-authored-by: Justin Yoo <justin.yoojh@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
이 PR은 pypandoc-hwpx의 문서-HWPX 변환 기능을 MCP 도구로 제공하는 MCP (Model Context Protocol) 서버, Docker 지원 및 개발 컨테이너 설정을 추가합니다.
MCP 서버 (
mcp/)docx_to_hwpx,html_to_hwpx,md_to_hwpx— 각각 해당 형식을 HWPX로 변환--http --port PORT)mcpSDK (FastMCP)를 사용하여 구현pyproject.toml,uv.lock및 VS Code MCP 구성 파일 포함Dockerfile (저장소 루트)
pypandoc-hwpx패키지 설치, MCP 서버 의존성 설치 순서로 진행pypandoc_hwpx/와mcp/디렉토리 모두에 접근할 수 있도록 저장소 루트에 배치--http플래그로 전환개발 컨테이너 (
.devcontainer/)uv패키지 매니저 포함문서
mcp/README.md에 설정 방법, 사용 예시, 도구 참조 및 Docker 빌드/실행 명령어 포함