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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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