Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/Server/Transport/CallbackStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Mcp\Server\Transport;

use Mcp\Exception\RuntimeException;
use Psr\Http\Message\StreamInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
Expand Down Expand Up @@ -115,12 +116,12 @@ public function isSeekable(): bool

public function seek($offset, $whence = \SEEK_SET): void
{
throw new \RuntimeException('Stream is not seekable');
throw new RuntimeException('Stream is not seekable');
}

public function rewind(): void
{
throw new \RuntimeException('Stream is not seekable');
throw new RuntimeException('Stream is not rewindable');
}

public function isWritable(): bool
Expand All @@ -130,7 +131,7 @@ public function isWritable(): bool

public function write($string): int
{
throw new \RuntimeException('Stream is not writable');
throw new RuntimeException('Stream is not writable');
}

public function isReadable(): bool
Expand Down