Skip to content

Add a search tool #21

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

Closed
wants to merge 2 commits into from
Closed

Add a search tool #21

wants to merge 2 commits into from

Conversation

Bornlex
Copy link
Collaborator

@Bornlex Bornlex commented May 22, 2025

No description provided.

mcp.go Outdated
return "", errors.New("no text")
}

return conn.Goto("https://duckduckgo.com/?q=" + strings.Replace(args.Text, " ", "+", -1))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I'm afraid DDG doesn't really work. did you try it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moreover, you should use url.QueryEscape to build your query string value.
https://pkg.go.dev/net/url#QueryEscape

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm not yet but sometimes the model does request DuckDuckGo on its own and gets results. I was under the impression that it works. Still a WIP anyway. I'll edit the name of the PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest you to try with bing instead.

@Bornlex Bornlex changed the title Add a search tool [WIP] Add a search tool May 22, 2025
@Bornlex Bornlex changed the title [WIP] Add a search tool Add a search tool May 22, 2025
@Bornlex Bornlex closed this Jun 23, 2025
@krichprollsch
Copy link
Member

closed in favor of #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants