Documentation
¶
Index ¶
- func InitializeSession(t *testing.T, w io.Writer, r *bufio.Scanner) testutil.JSONRPCResponse
- func SendNotification(t *testing.T, w io.Writer, method string, params interface{})
- func SendRequest(t *testing.T, w io.Writer, r *bufio.Scanner, method string, params interface{}) testutil.JSONRPCResponse
- func SendRequestSkipNotifications(t *testing.T, w io.Writer, r *bufio.Scanner, method string, params interface{}) testutil.JSONRPCResponse
- func StartProtomcp(t *testing.T, args ...string) (io.Writer, *bufio.Scanner, func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeSession ¶
InitializeSession sends a proper MCP initialize handshake.
func SendNotification ¶
SendNotification sends a JSON-RPC notification (no id, no response expected).
func SendRequest ¶
func SendRequest(t *testing.T, w io.Writer, r *bufio.Scanner, method string, params interface{}) testutil.JSONRPCResponse
SendRequest sends a JSON-RPC request and reads the response.
func SendRequestSkipNotifications ¶ added in v0.3.0
func SendRequestSkipNotifications(t *testing.T, w io.Writer, r *bufio.Scanner, method string, params interface{}) testutil.JSONRPCResponse
SendRequestSkipNotifications sends a request and reads the response, skipping any JSON-RPC notifications (messages without an "id" field) and responses whose ID does not match the request ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.