Skip to content

Commit 376fbba

Browse files
committed
throw exceptions in stdio transport for now
1 parent 3309b58 commit 376fbba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11

22
#include "mcp_stdio_transport.hpp"
33

4+
#include <stdexcept>
5+
46
toolcall::mcp_stdio_transport::mcp_stdio_transport(std::vector<std::string> argv)
57
: argv_(std::move(argv))
68
{
79
}
810

911
void toolcall::mcp_stdio_transport::start() {
12+
throw std::logic_error(std::string("Function not implemented: ") + __func__);
1013
}
1114

1215
void toolcall::mcp_stdio_transport::stop() {
16+
throw std::logic_error(std::string("Function not implemented: ") + __func__);
1317
}
1418

1519
bool toolcall::mcp_stdio_transport::send(const mcp::message_variant & /*request*/) {
16-
return false;
20+
throw std::logic_error(std::string("Function not implemented: ") + __func__);
1721
}

0 commit comments

Comments
 (0)