Fix: Add MCP Client Integration Guide and update installation commands (#2956)

This commit is contained in:
Akshat Jain
2025-06-20 22:09:10 +05:30
committed by GitHub
parent b6684b96f7
commit dd6f6f7a2e
5 changed files with 70 additions and 4 deletions

View File

@@ -10,4 +10,5 @@ node_modules/
*.log
api/.openmemory*
**/.next
.openmemory/
.openmemory/
ui/package-lock.json

View File

@@ -96,6 +96,16 @@ pnpm install
pnpm dev
```
### MCP Client Setup
Use the `install-mcp` utility to connect a client. The general command format is as follows:
```bash
npx install-mcp http://localhost:8765/mcp/<client-name>/sse/<user-id> --client <client-name>
```
Replace `<client-name>` with the desired client name and `<user-id>` with the value specified in your environment variables.
## Project Structure

View File

@@ -51,7 +51,7 @@ export const Install = () => {
const handleCopy = async (tab: string, isMcp: boolean = false) => {
const text = isMcp
? `${URL}/mcp/openmemory/sse/${user}`
: `npx install-mcp i ${URL}/mcp/${tab}/sse/${user} --client ${tab}`;
: `npx install-mcp ${URL}/mcp/${tab}/sse/${user} --client ${tab}`;
try {
// Try using the Clipboard API first
@@ -167,7 +167,7 @@ export const Install = () => {
<div className="relative">
<pre className="bg-zinc-800 px-4 py-3 rounded-md overflow-x-auto text-sm">
<code className="text-gray-300">
{`npx install-mcp i ${URL}/mcp/${key}/sse/${user} --client ${key}`}
{`npx install-mcp ${URL}/mcp/${key}/sse/${user} --client ${key}`}
</code>
</pre>
<div>