Is the server spawned from iOS, visible to other MCP clients?

Đang mở
#111 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ios, swift
Lĩnh vực
mobile-dev, networking

Hướng nghiên cứu

Start with Wormholy’s Sources/WormholySwift/MCP/MCPServer.swift and the attempted xcrun simctl configuration in the issue. Reproduce the integration with an external MCP client, then determine whether the app-spawned server can be discovered externally or needs a supported localhost transport; done means the supported connection approach is established.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

question

Hi there, and thank you for working on this SDK!

I'm integrating the MCP server into one of my open-source libraries, Wormholy. I want to make MCP Tools visible when an app using my library also imports this SDK. This would allow them to chat with the content of requests captured by Wormholy. However, I'm having difficulty testing the MCP with external tools like Goose or Claude Desktop.

Could you advise if my approach to implementing the MCP is correct? Also, do I need to specify how to locate the MCP server? I’ve tried several methods without success, such as:

{
  "mcpServers": {
    "Wormholy": {
      "command": "xcrun simctl launch --console booted YOUR_APP_BUNDLE_IDENTIFIER"
    }
  }
}

I wonder if there is a way to make the MCP server accessible via localhost on a specific port.

Here you can find my current implementation.

Thanks!

Ngôn ngữ chính
Swift
Star
1.6k
Fork
270
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/swift-sdk

Tất cả issue của modelcontextprotocol/swift-sdk

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.