HackerTrans
TopNewTrendsCommentsPastAskShowJobs

saqadri

no profile record

Submissions

Show HN: Building a Deep Research Agent Using MCP-Agent

thealliance.ai
91 points·by saqadri·10개월 전·20 comments

Evolving OAuth Client Registration in the Model Context Protocol

blog.modelcontextprotocol.io
2 points·by saqadri·10개월 전·0 comments

GitHub: Build secure and scalable remote MCP servers

github.blog
1 points·by saqadri·11개월 전·0 comments

Show HN: Representing Agents as MCP Servers

github.com
58 points·by saqadri·작년·16 comments

Show HN: MCP-Compatible OpenAI Agents SDK

5 points·by saqadri·작년·2 comments

Show HN: Mcp-Agent – Build effective agents with Model Context Protocol

github.com
80 points·by saqadri·작년·28 comments

comments

saqadri
·9개월 전·discuss
Hey folks, Sarmad from the LastMile team here that built MCP-c and mcp-agent.

We're looking for thoughts and feedback so will be happy to take any questions here! And as the post shows, it's really easy to try this out -- would be grateful for you to try deploying an agent as an MCP server and get your impressions!
saqadri
·10개월 전·discuss
Thanks for sharing this! We've reached out to the benchmark owners are are going to get our deep research agent benchmarked soon.
saqadri
·10개월 전·discuss
Thanks for sharing, this looks great! Do they have an MCP server? It should be easy to wrap around their JSON API but I couldn't see MCP support in the repo/docs.
saqadri
·10개월 전·discuss
Haha, I didn't have control on the blog website, just the content. The readme and code is the ultimate source of truth (and easier to read):https://github.com/lastmile-ai/mcp-agent/blob/main/src/mcp_a...

So the core idea is the Deep Orchestrator is pretty unopinionated on what to use for searching, as long as it is exposed over MCP. I tried with a basic fetch server that's one of the reference MCP servers (with a single tool called `fetch`), and also tried with Brave.

I think the folks at Jina wrote some really good stuff on the actual search part: https://jina.ai/news/a-practical-guide-to-implementing-deeps... -- and how to do page/url ranking over the course of the flow. My recommendation would be to do all that in an MCP server itself. That keeps the "deep orchestrator" architecture fairly clean, and you can plug in increasingly sophisticated search techniques over time.
saqadri
·10개월 전·discuss
OP here -- I think the general principle I would recommend is using a big reasoning model for the planning phase. I think Claude Code and other agents do the same. The reason this is important is because the quality of the plan really affects the final result, and error rates will compound if the plan isn't good.
saqadri
·작년·discuss
This is so cool. A big reason I used prisma was for prisma studio. Having this kind of support in vscode is nice to see
saqadri
·작년·discuss
This diagram might be helpful: https://pbs.twimg.com/media/GrgGy2jWQAAittE?format=jpg&name=...
saqadri
·작년·discuss
Agreed. Time, token, cost budget caps would be a great addition. Will add it as a feature request :)
saqadri
·작년·discuss
I think that's a fair point. How I envision this to realistically evolve is that MCP servers will expose workflows that handle common tasks. These workflows will be "agentic" because they'll involve LLMs interacting with tools and data, and it will be facilitated over MCP. For example, it would be great to have a "triage" workflow agent exposed by Linear, which in turn might use some MCP servers to make tool calls etc.

I don't know of a usecase where there are such deep recursive agent chains that it becomes unmanageable.

I almost think of mcp-agents as a modern form of scripting – we have agent workflows (e.g. generating a summary of new GitHub issues and posting on Slack), and exposing them as MCP servers has enabled us to use them in our favorite MCP clients.
saqadri
·작년·discuss
This is exactly what we're working on at the moment! (If you're curious about following along progress, check out feature/distributed_tracing branch -- https://github.com/lastmile-ai/mcp-agent/tree/feature/distri...)

The nice thing about representing agents as MCP servers is we can leverage distributed tracing via OTEL to log multi-agent chains. Within the agent application, mcp-agent tracing follows the LLM semantic conventions from OpenTelemetry (https://opentelemetry.io/docs/specs/semconv/gen-ai/). For any MCP server that the agent uses, we propagate the trace context along.
saqadri
·작년·discuss
Authentication and authorization is something we are thinking about a lot at the moment, especially for agents that are MCP servers.

Our thoughts here are to handle auth the same way that the MCP spec outlines auth (https://modelcontextprotocol.io/specification/2025-03-26). The key thing is to send authorization requests back to the user in a structured way. For example, if Agent A invokes Agent B, which requires user approval for executing a tool call, that authorization request needs to be piped back to the client, and then propagated back to the agent.

This is technically possible to do with the MCP protocol as it exists today, but I think we will want to add that support in mcp-agent itself so it is easy to pause an agent workflow waiting for authentication/authorization.

One nice property of representing agents as MCP servers is that Agent discovery is the same as server discovery.
saqadri
·작년·discuss
Would love your feedback on the Temporal support and the MCP agent server concept which we merged in yesterday
saqadri
·작년·discuss
You should comment on the issue! I would love native support as well, but I also understand the desire to keep the framework lightweight. It should be fairly straightforward to add an extension package
saqadri
·작년·discuss
Creator of mcp-agent here, OP and I are going to be keeping these projects in sync, and build agent apps on top of these patterns. MCP is pretty new and people are adding lots of servers for different software services. I think the next step is exposing agents (i.e. compound AI workflows) themselves as MCP servers.

In addition to simple abstractions for declaring agents, fastagents has a really nice CLI utility, which can be useful for interaction with MCPs outside of Cursor and Claude Desktop, where they are most popular atm.
saqadri
·작년·discuss
Reach out when you get started!
saqadri
·작년·discuss
These notes are really great!
saqadri
·작년·discuss
This is something I have thought a little bit about. I think a registry would be useful and I know a few projects trying to set that up, but there may be multiple MCP servers for the same thing (already there are a few community implementations of an Atlassian server for e.g.).

It is conceivable that we make it completely dynamic where the agent first decides which set of servers it should need for its task/instruction. Another way of framing that is it should be possible to create agents themselves dynamically based on the objective.

I don’t have a good answer to this yet but if you want to help figure that out we can collaborate
saqadri
·작년·discuss
Amazing, looking forward to it. My email is on my account, but feel free to just create an issue in the GitHub and we can get started that way
saqadri
·작년·discuss
It’s possible commenter is referring to my team. But yes this project was solely my fault :D, along with a few amazing contributors from the open source community who are credited in the readme
saqadri
·작년·discuss
Ah, just saw your edited comment. I am open to suggestions about this. These names are defined in the mcp_agent.config.yaml (e.g. https://github.com/lastmile-ai/mcp-agent/blob/main/examples/...). The logic that manages keeping track of them is mcp_server_registry.py.

I am open to alternative suggestions for this. I just wanted to make it easy to reference MCP servers by name and hide the logic of how they are initialized, what transport they use, what args are passed to them, into configs