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

Aperta
#111 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
ios, swift

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Swift
Stelle
1.6k
Fork
270
Merge medio
2g 7h
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/swift-sdk

Tutte le issue di modelcontextprotocol/swift-sdk

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.