e2e

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeSession

func InitializeSession(t *testing.T, w io.Writer, r *bufio.Scanner) testutil.JSONRPCResponse

InitializeSession sends a proper MCP initialize handshake.

func SendNotification

func SendNotification(t *testing.T, w io.Writer, method string, params interface{})

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.

func StartProtomcp

func StartProtomcp(t *testing.T, args ...string) (io.Writer, *bufio.Scanner, func())

StartProtomcp starts the protomcp binary with the given args.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL