-
Notifications
You must be signed in to change notification settings - Fork 441
[mcp-client] Allow arbitrary endpoint via URL (in both McpClient and Agent) #1396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
model: string; | ||
apiKey: string; | ||
servers: StdioServerParameters[]; | ||
prompt?: string; | ||
}) { | ||
super({ provider, model, apiKey }); | ||
super(provider ? { provider, baseUrl, model, apiKey } : { provider, baseUrl, model, apiKey }); | ||
/// ^This shenanigan is just here to please an overzealous TS type-checker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫠
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @coyotte508 if he has an idea to "fix" (in a later PR?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also had to write something like this in #1322 I think (before the force-push)
Co-authored-by: Lucain <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
CI red on main so merging :) |
I tried this, I got this error:
|
Hi @redthing1 , could you open a new issue for this + provide the command line/script you are using? Will be easier to help you this way. |
…Agent) (#1396) for local AI for instance 🔥 ## To try it Using LM Studio + this model: https://lmstudio.ai/model/qwen2.5-14b-instruct ```sh # in ./packages/mcp-client ENDPOINT_URL=http://localhost:1234/v1 MODEL_ID=qwen2.5-14b-instruct tsx cli.ts ``` --------- Co-authored-by: Lucain <[email protected]>
for local AI for instance 🔥
To try it
Using LM Studio + this model: https://lmstudio.ai/model/qwen2.5-14b-instruct
# in ./packages/mcp-client ENDPOINT_URL=http://localhost:1234/v1 MODEL_ID=qwen2.5-14b-instruct tsx cli.ts