<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mergeway-mcp reference on Mergeway</title><link>https://mergewayhq.github.io/docs/reference/mcp/</link><description>Recent content in mergeway-mcp reference on Mergeway</description><generator>Hugo</generator><language>en</language><atom:link href="https://mergewayhq.github.io/docs/reference/mcp/index.xml" rel="self" type="application/rss+xml"/><item><title>MCP transports</title><link>https://mergewayhq.github.io/docs/reference/mcp/transports/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/mcp/transports/</guid><description>&lt;h1 id="mcp-transports"&gt;MCP transports&lt;a class="anchor" href="#mcp-transports"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="stdio"&gt;Stdio&lt;a class="anchor" href="#stdio"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Stdio is the default and is intended for a client that launches one server subprocess:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-mcp --root /absolute/path/to/repository&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The transport is newline-delimited JSON-RPC over stdin and stdout. Closing stdin ends the session. Protocol responses are the only stdout content; diagnostics use stderr. &lt;code&gt;--http-listen&lt;/code&gt; and &lt;code&gt;--http-base-path&lt;/code&gt; are rejected when their flags are explicitly supplied with stdio, even if their values match the defaults.&lt;/p&gt;
&lt;h2 id="streamable-http"&gt;Streamable HTTP&lt;a class="anchor" href="#streamable-http"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-mcp --root /absolute/path/to/repository --transport&lt;span style="color:#f92672"&gt;=&lt;/span&gt;http&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The default endpoint is &lt;code&gt;http://127.0.0.1:8080/&lt;/code&gt;. The server uses stateless streamable HTTP with JSON responses. Requests must target the exact normalized mount: unrelated paths return HTTP &lt;code&gt;404&lt;/code&gt;. A trailing slash in the configured path is cleaned, so &lt;code&gt;/mcp/&lt;/code&gt; mounts at &lt;code&gt;/mcp&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>MCP tools</title><link>https://mergewayhq.github.io/docs/reference/mcp/tools/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/mcp/tools/</guid><description>&lt;h1 id="mcp-tools"&gt;MCP tools&lt;a class="anchor" href="#mcp-tools"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;All inputs and outputs below are JSON objects. Entity parameters are exact, case-sensitive names. Results are structured content and are also represented as text by the SDK for compatible clients. Lists are deterministic. Every tool honors the startup entity allow-list.&lt;/p&gt;
&lt;h2 id="entity_list"&gt;&lt;code&gt;entity_list&lt;/code&gt;&lt;a class="anchor" href="#entity_list"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Lists visible entity names. It has no parameters and returns &lt;code&gt;{&amp;quot;entities&amp;quot;:[string]}&lt;/code&gt; sorted by name. An allow-list removes every unlisted entity. Repository reload failures produce &lt;code&gt;repository_error&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&lt;span style="color:#f92672"&gt;&amp;#34;entities&amp;#34;&lt;/span&gt;:[&lt;span style="color:#e6db74"&gt;&amp;#34;Comment&amp;#34;&lt;/span&gt;,&lt;span style="color:#e6db74"&gt;&amp;#34;Post&amp;#34;&lt;/span&gt;,&lt;span style="color:#e6db74"&gt;&amp;#34;Tag&amp;#34;&lt;/span&gt;,&lt;span style="color:#e6db74"&gt;&amp;#34;User&amp;#34;&lt;/span&gt;]}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="entity_show"&gt;&lt;code&gt;entity_show&lt;/code&gt;&lt;a class="anchor" href="#entity_show"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Shows the normalized schema/configuration for one visible entity.&lt;/p&gt;</description></item></channel></rss>