MCP Access Server

by shin-t-o

MCP 액세스 템플릿

개인용 도구
이전: nodejs -> deno

설정

지엑스피1

도구

목록

  • commandExecute
    • 허용된 목록에서 명령을 실행합니다.
  • getUrlToMd
    • 웹 페이지를 Markdown으로 구문 분석하여 반환합니다.
  • getPdfContent
    • 텍스트 구문 분석 및 PDF 콘텐츠 반환

도서관

MCP 검사관

MCP 검사기는 MCP 서버를 테스트하고 디버깅하는 개발자 도구입니다.

$ npx @modelcontextprotocol/inspector deno run -A src/index.ts

문제 해결

해결 방법

pdfjs-dist

경고 제거 방법: build in Node.js environments. Warning: Please use the . (이 콘솔 메시지는 MCP 시작을 방해합니다.)

// if (isNodeJS) { // warn("Please use the `legacy` build in Node.js environments."); // }

로컬에서 실행

# start locally $ deno run -A src/index.ts # exec $ {"jsonrpc":"2.0","id":"toolcall-1","method":"tools/call","params":{"name":"getUrlToMd","arguments":{"url":"https://code.visualstudio.com/docs/editing/intellisense"}}} # --- # start locally + exec + save result $ echo '{"jsonrpc":"2.0","id":"toolcall-1","method":"tools/call","params":{"name":"getUrlToMd","arguments":{"url":"https://code.visualstudio.com/docs/editing/intellisense"}}}' | \ deno run -A src/index.ts | \ grep "result" | \ jq -r '.result.content[0].text | fromjson' > example.md

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

웹 페이지와 PDF에서 텍스트를 추출하고, 미리 정의된 명령을 실행하여 콘텐츠 처리 및 자동화 기능을 향상시킵니다.

  1. Settings
    1. Tools
      1. List
      2. Libraries
      3. MCP Inspector
    2. Trouble shooting
      1. Workaround
    3. Exec locally
      ID: l0143hjrjj