nimwire/composition
This page is generated from the module’s exported API and ## documentation comments.
Optional composition of a remote MCP peer into a local server.
McpProxy
Section titled “McpProxy”A discovered remote peer mounted into a local McpServer.
McpProxy = ref object peer*: McpPeer namespace*: stringProcedures
Section titled “Procedures”newMcpProxy
Section titled “newMcpProxy”proc newMcpProxy(transport: McpMessageTransport; namespace = "remote"): McpProxy {. raises: [McpError], tags: [], forbids: [].}Returns: McpProxy.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
transport |
McpMessageTransport |
|
namespace |
inferred |
"remote" |
mountMcpServerAsync (overload 1)
Section titled “mountMcpServerAsync (overload 1)”proc mountMcpServerAsync(server: McpServer; proxy: McpProxy): Future[void] {. stackTrace: false, raises: [Exception, McpError, ValueError, KeyError], tags: [RootEffect], forbids: [].}Returns: Future[void].
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
server |
McpServer |
|
proxy |
McpProxy |
mountMcpServerAsync (overload 2)
Section titled “mountMcpServerAsync (overload 2)”proc mountMcpServerAsync(server: McpServer; transport: McpMessageTransport; namespace = "remote"): Future[McpProxy] {. stackTrace: false, raises: [Exception, ValueError, McpError, KeyError], tags: [RootEffect], forbids: [].}Returns: Future[McpProxy].
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
server |
McpServer |
|
transport |
McpMessageTransport |
|
namespace |
inferred |
"remote" |
mountMcpServer (overload 1)
Section titled “mountMcpServer (overload 1)”proc mountMcpServer(server: McpServer; proxy: McpProxy) {. raises: [ValueError, Exception, OSError, McpError, KeyError], tags: [TimeEffect, RootEffect], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
server |
McpServer |
|
proxy |
McpProxy |
mountMcpServer (overload 2)
Section titled “mountMcpServer (overload 2)”proc mountMcpServer(server: McpServer; transport: McpMessageTransport; namespace = "remote"): McpProxy {. raises: [ValueError, Exception, OSError, McpError, KeyError], tags: [TimeEffect, RootEffect], forbids: [].}Returns: McpProxy.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
server |
McpServer |
|
transport |
McpMessageTransport |
|
namespace |
inferred |
"remote" |