src/server.bend fails
raw source on the hub · import ezmcp@0.1.0.0/src/server.bend as Server
ezmcp/src/server: an MCP server's decisions, with no IO. One message's
text in, under the protocol revision the transport reads it by, an act
out: a reply to send, nothing to send, a tool call for the transport to
run (src/io.bend) before it replies with ran, or, under 2025-03-26, a
batch of those.
4 imports
import Base import 0xa81e161008ecc2f297c0a3065cb9b188/main.bend as Json import 0xa81e161008ecc2f297c0a3065cb9b188/src/value.bend as Value import ./rpc.bend as Rpc
The reader could not load this file (at 0xe8a45a5d2dbc02504d10df4cabf172ea/src/server.bend:12). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
11 | # one tool: its name, what it does, and the JSON Schema of its arguments
12>| type Tool is Data:
| ^^^^
13 | Tool{name: String, description: String, input: Value.Json}