Skip to content

Not able to connect to lm studio #2

Description

@Bdhawa123

LM studio fails to connect due to

function send(msg) {
  const json = JSON.stringify(msg);
  process.stdout.write(
    `Content-Length: ${Buffer.byteLength(json)}\n${json}`,
  );
}

function sendResponse(message) {
  const json = JSON.stringify(message);
  process.stdout.write(`Content-Length: ${Buffer.byteLength(json)}\r\n\r\n${json}`);
}

Fixed code was implemented with the help of gemini

mcp-server.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions