Class: Manceps::Transport::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/manceps/transport/base.rb

Overview

Abstract base class for MCP transports.

Direct Known Subclasses

Stdio, StreamableHTTP

Instance Method Summary collapse

Instance Method Details

#closeObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/manceps/transport/base.rb', line 23

def close
  raise NotImplementedError
end

#listenObject

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/manceps/transport/base.rb', line 27

def listen(&)
  raise NotImplementedError
end

#notify(body) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/manceps/transport/base.rb', line 15

def notify(body)
  raise NotImplementedError
end

#on_notification(&block) ⇒ Object



31
32
33
# File 'lib/manceps/transport/base.rb', line 31

def on_notification(&block)
  @notification_callback = block
end

#request(body) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/manceps/transport/base.rb', line 7

def request(body)
  raise NotImplementedError
end

#request_streaming(body) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/manceps/transport/base.rb', line 11

def request_streaming(body, &)
  raise NotImplementedError
end

#terminate_session(session_id) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/manceps/transport/base.rb', line 19

def terminate_session(session_id)
  raise NotImplementedError
end