
jameslong/vancouver
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Elixir의 간단한 MCP 서버 라이브러리.
개요
Vancouver는 Phoenix/Bandit 서버에 Model Context Protocol (MCP) 기능을 쉽게 추가할 수 있습니다. Vancouver는 초기화, 요청 검증 및 MCP 도구 및 프롬프트의 생성을 단순화하는 돕기 기능을 제공합니다. E.g. Claude Desktop의 경우 구성 설정 -> 수정할 수 있습니다. 개발자 -> config를 다음과 같이 수정: { "mcpServer": { "MyApp": { "command": "npx", "args": [ "mcp-remote", "http://localhost:4000/mcp"} } } } 서버를 실행하고, Claude를 다시 시작으로 MCP 도구. - 도구 - 프롬프트 - 동기화 응답 ( 스트리밍 없음) 그러나, 도서관은 간단한 당신이 당신의 필요를 위해 그것을 수정할 수 있어야 합니다. 프로토콜 자체에 대한 자세한 정보는 MCP 사용자 가이드를 참조하십시오. 이름 * 이 도서관은 초기 개발 중입니다. 변화가 예상됩니다.
개요(AI 번역)
Vancouver는 Phoenix/Bandit 서버에 Model Context Protocol (MCP) 기능을 쉽게 추가할 수 있습니다. Vancouver는 초기화, 요청 검증 및 MCP 도구 및 프롬프트의 생성을 단순화하는 돕기 기능을 제공합니다.
시작하기
##1. 의존성 추가
mix.exs에서:
##2. 도구/프로mpts 만들기
다음과 같은 도구를 구현할 수 있습니다:
그리고 다음과 같은 프롬프트:
##3. 설정 추가
config.ex:
##4. MCP 경로 추가
router.ex에서:
5. (선택) 당신의 MCP 클라이언트에 추가하십시오
E.g. Claude Desktop의 경우 config Settings -> Developer -> Edit config를 다음과 같이 수정할 수 있습니다.
이름 * “mcpServers”: { “MyApp”: { “command”: “npx”, 한국어 [KR]한국어 “mcp-remote”, “http://localhost:4000/mcp”] · 기타 기타 기타
서버를 실행하고, Claude를 다시 시작으로 MCP 도구.
자주 묻는 질문
Vancouver는 Model Context Protocol 사양의 모든 부품을 지원합니까?
아직 없습니다. Vancouver 현재 지원:
- 도구
- 프롬프트
- 동기화 응답 ( 스트리밍 없음)
그러나, 도서관은 간단한 당신이 당신의 필요를 위해 그것을 수정할 수 있어야 합니다.
프로토콜 자체에 대한 자세한 정보는 MCP 사용자 가이드를 참조하십시오.
###는 밴쿠버 안정되어 있는/생산을 위해 준비되어 있습니까?
이름 *.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Vancouver
Vancouver makes it easy to add Model Context Protocol (MCP) functionality to your Phoenix/Bandit server. Vancouver handles initialization, request validation, and offers helper functions to simplify the creation of MCP tools and prompts.
Getting started
1. Add dependency
In mix.exs:
defp deps do
[
{:vancouver, "~> 0.3"}
]
end
2. Create your tools/prompts
You can implement tools like this:
defmodule MyApp.Tools.CalculateSum do
use Vancouver.Tool
def name, do: "calculate_sum"
def description, do: "Add two numbers together"
def input_schema do
%{
"type" => "object",
"properties" => %{
"a" => %{"type" => "number"},
"b" => %{"type" => "number"}
},
"required" => ["a", "b"]
}
end
def run(conn, %{"a" => a, "b" => b}) do
send_text(conn, "#{a + b}")
end
end
And prompts like this:
defmodule MyApp.Prompts.CodeReview do
use Vancouver.Prompt
def name, do: "code_review"
def description, do: "Asks the LLM to analyze code quality and suggest improvements"
def arguments do
[
%{
"name" => "code",
"description" => "The code to review",
"required" => true
}
]
end
def run(conn, %{"code" => code}) do
send_text(conn, "Please review this code: #{code}")
end
end
3. Add config
In config.ex:
config :vancouver,
name: "My MCP Server",
version: "1.0.0"
4. Add your MCP route
In router.ex:
forward "/mcp", Vancouver.Router,
tools: [MyApp.Tools.CalculateSum],
prompts: [MyApp.Prompts.CodeReview]
5. (Optional) Add to your MCP client
E.g. For Claude Desktop, you can modify your config Settings -> Developer -> Edit config as follows:
{
"mcpServers": {
"MyApp": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp"
]
}
}
}
Run your server, and restart Claude to starting using your MCP tools. 🚀
FAQ
Does Vancouver support all parts of the Model Context Protocol specification?
Not yet. Vancouver currently supports:
- tools
- prompts
- sync responses (no streaming)
However, the library is simple enough that you should be able to modify it for your needs.
설치
npx mcp-remote http://localhost:4000/mcp