Ragex.MCP.Debug (Ragex v0.32.1)

View Source

Helper functions for debugging MCP protocol issues.

Usage in IEx:

iex> Ragex.MCP.Debug.test_initialize()
iex> Ragex.MCP.Debug.test_tools_list()
iex> Ragex.MCP.Debug.test_analyze()

Summary

Functions

Start IEx with helpful context.

Process a decoded message (simulating Server.handle_message).

Test analyzing a directory.

Test the initialize handshake.

Test a raw message and show the response.

Test listing tools.

Functions

help()

@spec help() :: :ok

Start IEx with helpful context.

process_message(message)

@spec process_message(map()) :: map()

Process a decoded message (simulating Server.handle_message).

test_analyze(path \\ ".")

@spec test_analyze(String.t()) :: {:ok, map()} | {:error, term()}

Test analyzing a directory.

test_initialize()

@spec test_initialize() :: {:ok, map()} | {:error, term()}

Test the initialize handshake.

test_message(message)

@spec test_message(map()) :: {:ok, map()} | {:error, term()}

Test a raw message and show the response.

test_tools_list()

@spec test_tools_list() :: {:ok, map()} | {:error, term()}

Test listing tools.