- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::nsmcp::Server
::nsmcp::Servercreate ... \
[ -path (default "/mcp") ] \
[ -transport:required transport:required ]
Defined in /usr/local/ns/tcl/nsmcp/transport.tcl
Class Relations
Methods (to be applied on instances)
http (scripted, public)
<instance of nsmcp::Server> 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> 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.
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
![[i]](/resources/acs-subsite/ZoomIn16.gif)