MCP. - Server

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network >

MCP. - Server

!HTP-MCP Overview

Previous Top Next


SPR Script Language

 

!HTP-MCP Overview

Overview of MCP (MCP = Model Context Protocol) server operations in the HTP-Library.

 

Intention

 

 

 

 

Sample JSON Description for the local MCP-Server for Roo-Code:

{

  "mcpServers": {

    "SPR-Server": {

      "type": "streamable-http",

      "url": "http://127.0.0.1:5555/mcp",

      "alwaysAllow": [

        "spr_server_assistant",

        "list_tools",

        "list_spr_categories",

        "find_spr_commands_by_category",

        "find_spr_commands_by_keyword",

        "get_spr_command_info",

        "get_spr_topic_info",

        "get_spr_recipe",

        "get_spr_path",

        "task_check_result",

        "task_execute"

      ],

      "disabled": false

    }

  }

}

 

 

 

Sample JSON Description for the local MCP-Server for LM-Studio:

{

  "mcpServers": {

    "spr-server-http": {

      "url": "http://127.0.0.1:5555/mcp"

    }

  }

}

 

 

 

 

 

 

Testing the MCP-Server with a Powershell-Script:

 

 

The MCP-Listener-Server starts with a Debug-Window. This will help you in case in case of problems. Closing this window will end the Script.

 

 

You can test the MCP-Server with a Powershell-Script:

 
 

 

 

If the Server-Script is running you will get this from the Powershell:
 

 

 

 

The Server-Log will show:

 
 

 

and you can see the Server--Window:

 

 

 

Closing this Window will end the Server, not end the script.

 

You have 4 Buttons that will change the Server Debug-Level (what is displayed) and one Button to hide the Server Window.

 

 

Example Use Cases

 

 

Sub-Folders and Commands

 

!Server-Lifecycle - Commands for managing the MCP server lifecycle (init, start, stop).

!Server-Operations - Commands for interacting with a running MCP server (signals, actions).

!TCP-Client - Low-level commands for building a client to connect to the MCP server.