{"id":3498,"date":"2026-09-10T15:53:17","date_gmt":"2026-09-10T20:53:17","guid":{"rendered":"https:\/\/xlinesoft.com\/blog\/?p=3498"},"modified":"2026-09-10T15:53:48","modified_gmt":"2026-09-10T20:53:48","slug":"experimenting-with-mcp-support-in-phprunner","status":"publish","type":"post","link":"https:\/\/xlinesoft.com\/blog\/2026\/09\/10\/experimenting-with-mcp-support-in-phprunner\/","title":{"rendered":"Experimenting with MCP Support in PHPRunner"},"content":{"rendered":"<p>The Model Context Protocol, or MCP, provides a standard way for AI assistants to connect to applications, discover available tools, and work with live data.<\/p>\n<p>We created an early MCP prototype to explore how this technology could work inside a generated PHPRunner application.<\/p>\n<p><a href=\"https:\/\/youtu.be\/EJun7UB42PM\"><i class=\"fas fa-link\" style=\"solid\"><\/i> Watch the PHPRunner MCP demonstration on YouTube<\/a><\/p>\n<p><a href=\"https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/MCP_Server_20260910173848622.zip\"><i class=\"fas fa-link\" style=\"solid\"><\/i> Download the PHPRunner MCP sample project<\/a><\/p>\n<p><a href=\"https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28-1024x576.png\" alt=\"\" width=\"810\" height=\"456\" class=\"alignnone size-large wp-image-3500\" srcset=\"https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28-1024x576.png 1024w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28-600x338.png 600w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28-768x432.png 768w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28-1536x864.png 1536w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2026\/09\/exec-7b54001f-8aa2-45f5-9883-81b9f5a19c28.png 1672w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/a><br \/>\n<!--more--><\/p>\n<p><strong>MCP tools in PHPRunner<\/strong><\/p>\n<p>The prototype can expose standard operations for enabled application tables, including:<br \/>\n&#8211; Listing and searching records<br \/>\n&#8211; Retrieving individual records<br \/>\n&#8211; Adding and updating records<br \/>\n&#8211; Deleting records<\/p>\n<p>The available tools depend on the application configuration and permissions associated with the supplied API key.<\/p>\n<p>An AI assistant can process requests such as \u201cShow me the last five orders\u201d or \u201cFind all products in the Pastry category,\u201d select the appropriate tool, and return the results in a readable format.<\/p>\n<p><strong>Authentication and permissions<\/strong><\/p>\n<p>This initial prototype uses API-key authentication. OAuth and a separate authorization server are not required.<\/p>\n<p>The MCP layer works with the PHPRunner application layer responsible for permissions, validation, events, and data access. This is especially important for operations that change data. An API key can allow an assistant to view records without granting permission to add, update, or delete them.<\/p>\n<p><strong>Custom MCP actions<\/strong><\/p>\n<p>Applications often include workflows that require more than a single database operation. Custom MCP actions can represent these higher-level business processes.<br \/>\nMultiple actions can be defined in an mcp_actions.php file. Each action describes its parameters, required permissions, behavior, and PHP handler.<\/p>\n<p>The sample application includes actions for:<br \/>\n&#8211; Producing an inventory summary<br \/>\n&#8211; Receiving inventory<br \/>\n&#8211; Discontinuing or reactivating products<br \/>\n&#8211; Marking orders as shipped<br \/>\n&#8211; Creating a customer and complete order<br \/>\n&#8211; Increasing prices within a category<\/p>\n<p>For example, creating a customer and order requires coordinated changes to several tables. A custom action can complete the entire workflow from one request.<\/p>\n<p>MCP opens some interesting possibilities for conversational queries, application automation, reporting, and multi-step business workflows. Let us know which PHPRunner workflows you would like to access through an AI assistant.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Model Context Protocol, or MCP, provides a standard way for AI assistants to connect to applications, discover available tools, and work with live data. We created an early MCP prototype to explore how this technology could work inside a generated PHPRunner application. Watch the PHPRunner MCP demonstration on YouTube Download the PHPRunner MCP sample project<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,1,8],"tags":[],"class_list":["post-3498","post","type-post","status-publish","format-standard","hentry","category-asp-net","category-php-category","category-tutorials"],"_links":{"self":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts\/3498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=3498"}],"version-history":[{"count":4,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts\/3498\/revisions"}],"predecessor-version":[{"id":3504,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts\/3498\/revisions\/3504"}],"wp:attachment":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=3498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=3498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=3498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}