SmythOS SDK
    Preparing search index...

    MCP (Model Context Protocol) server

    The MCP server is a server that can be used to interact with the agent

    The MCP server can be started in two ways:

    • STDIO: The MCP server will be started in STDIO mode
    • SSE: The MCP server will be started in SSE mode, this is case the listening url will be http://localhost:/mcp
    Index

    Constructors

    Methods

    • Parameters

      • port: any

      Returns Promise<string>

    • Stop the MCP server

      Returns void

      const mcp = agent.mcp(MCPTransport.SSE, 3389);
      mcp.stop();