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

 

The HTP-MCP commands provide a complete Model Context Protocol (MCP) server implementation for SPR. This allows external AI tools like Roo-Code, LM Studio, and other MCP-compatible clients to execute SPR scripts and access SPR's extensive command library.

 

The MCP server enables:

Remote script execution via HTTP

AI assistant integration (Claude, GPT, etc.)

Standardized tool calling interface

Multi-client support (Roo-Code, LM Studio, etc.)

 

 

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).

!MCP_Server_Operations---Overview - 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.