::nsmcp::Object ::nsmcp::Object dict getdef ::nx::Object ::nx::Object ::nsmcp::Object->::nx::Object ::nsmcp::Server ::nsmcp::Server http install ::nsmcp::Server->::nsmcp::Object

Class ::nsmcp::Server

::nsmcp::Server[i] create ... \
           [ -path (default "/mcp") ] \
           [ -transport:required transport:required ]

Defined in /usr/local/ns/tcl/nsmcp/transport.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::Object[i]

Methods (to be applied on instances)

  • http (scripted, public)

     <instance of nsmcp::Server[i]> http

    Adapt the current NaviServer connection to the MCP transport. Normalize request headers, enforce body limits and write the transport's status, headers and response body.

    Returns:
    The NaviServer response-writing result.

    Testcases:
    No testcase defined.
  • install (scripted, public)

     <instance of nsmcp::Server[i]> install

    Register the MCP endpoint handlers with NaviServer. Install lifecycle cleanup and handlers for the supported and explicitly rejected HTTP methods.

    Returns:
    The registration result.

    Testcases:
    No testcase defined.