-
Notifications
You must be signed in to change notification settings - Fork 15
Adding MCP Agent template to CLI #299
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
base: main
Are you sure you want to change the base?
Conversation
const serverName = await rl.question('Enter MCP server name: '); | ||
const mcpUrl = await rl.question('Enter MCP server URL: '); |
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.
It'd be great if the template could provide these, and it would go through all the questions
rl.close(); | ||
|
||
// Validate the MCP URL | ||
const result = z.string().url().safeParse(mcpUrl); |
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.
You're putting this in "new" but it's very specific to a particular template.
"@microsoft/teams.dev": "preview", | ||
"@microsoft/teams.graph": "preview", | ||
"@microsoft/teams.mcp": "preview", | ||
"@microsoft/teams.mcpclient": "^2.0.0-preview.8", |
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.
why not preview
const res = await prompt.send(activity.text); | ||
console.log(res); | ||
|
||
await send({ type: 'message', text: res.content }); |
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.
don't you need to send a message back?
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.
send with res.content
Added new template to template folder and custom hook to require MCP Server Name and MCP Server Link as inputs.