Conversation
|
@copilot given all the above, if the goal is to expose an MCP server, what do you think about a completely separate repo focused just on that? |
A separate repo makes sense given the evaluation. The main reasons:
The one prerequisite is that The HTTP-proxy portion (the majority of the current tools) could potentially be dropped in favor of a generic OpenAPI bridge, which would make the separate repo even leaner — focusing only on chain-write operations and local dev tools that genuinely require custom logic. |
|
@copilot yeah, |
194966a to
ba59f12
Compare
|
was good research, but not a real PR |
@dakom requested an architectural review of
packages/wavs-mcp— no code changes, commentary only.Findings:
OpenAPI overlap: ~13 of ~16 tools are thin HTTP proxies over the existing REST API. A generic OpenAPI-to-MCP bridge would auto-generate most of them. The only meaningfully differentiated pieces are the direct chain-write tools (which bypass the HTTP API and call EVM contracts via alloy) and the local scaffold/build/WIT tools.
Private key security: Embedding
WAVS_CHAIN_WRITE_CREDENTIAL/WAVS_SIGNING_MNEMONICin the MCP server is a poor posture — an AI can autonomously sign and broadcast on-chain transactions with no confirmation gate or human-in-the-loop. Chain-write capability either needs explicit approval hooks or should be moved to a human-controlled CLI surface.Scaffold quality:
wavs_scaffold_componentgenerates generic WASM component boilerplate (Cargo.toml + lib.rs). The WAVS-specific artifact — the service definition JSON that wires triggers to components and declares the service manager — is not generated or explained. The scaffold covers the generic WASM side, not the WAVS-specific deployment configuration.Repo placement: With the HTTP-proxy portion largely replaceable by a generic bridge, the remaining unique value is small. Separation is reasonable given the independent release cadence of MCP tooling, though keeping it in the monorepo is defensible while
wavs_typescoupling remains tight.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.