Benutzer-Werkzeuge

Webseiten-Werkzeuge


mcp

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
mcp [2025/12/23 10:01]
admin
mcp [2025/12/23 10:02] (aktuell)
admin
Zeile 1: Zeile 1:
 [[todo]] Model Context Protocol [[todo]] Model Context Protocol
  
-Beispiel (json RPC)+=====JsonRPC===== 
 + 
 +initialize (Request)
 <code json> <code json>
-# initialize (Request) 
 {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"LM Studio","version":"0.3.x"}}} {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"LM Studio","version":"0.3.x"}}}
 +</code>
  
-notifications/initialized (Notification, ohne id)+notifications/initialized (Notification, ohne id) 
 +<code json>
 {"jsonrpc":"2.0","method":"notifications/initialized","params":{}} {"jsonrpc":"2.0","method":"notifications/initialized","params":{}}
 +</code>
  
-#  +Dann je nach Bedarf
-Dann je nach Bedarf +
-#+
  
-tools/list+tools/list 
 +<code json>
 {"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}} {"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}
 +</code>
  
-tools/call+tools/call 
 +<code json>
 {"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"<toolname>","arguments":{...}}} {"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"<toolname>","arguments":{...}}}
 </code> </code>
mcp.1766480475.txt.gz · Zuletzt geändert: 2025/12/23 10:01 von admin