frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Representing Agents as MCP Servers

https://github.com/lastmile-ai/mcp-agent/tree/main/examples/mcp_agent_server
58•saqadri•10mo ago
Hey HN! A few months ago we shared mcp-agent (https://github.com/lastmile-ai/mcp-agent) [1][2], a lightweight framework that implements every agent pattern from Anthropic’s Building Effective Agents blog [3] and handles MCP server/client management seamlessly. Our core bet is that connecting LLMs to tools, resources, and external systems will soon be MCP-native by default.

Today we're launching a significant update: Agents as MCP servers.

Currently "agentic" behavior exists only on the MCP client side – clients like Claude or Cursor use MCP servers to solve tasks. With this update, Agents can be MCP servers themselves, so that any MCP client can invoke, coordinate and orchestrate agents the same way it does with any other MCP server.

This paradigm shift enables: 1. Agent Composition: Build complex multi-agent systems over the same base protocol (MCP). 2. Platform Independence: Use your agents from any MCP-compatible client 3. Scalability: Run agent workflows on dedicated infrastructure, not just within client environments 4. Customization: Develop your own agent workflows and reuse them across any MCP client.

How an agent server is implemented:

We’ve implemented this in mcp-agent with Workflows. Each workflow is an agent application that can interact with other MCP servers (e.g. summarizing GitHub issues → Slack message). mcp-agent exposes workflows as MCP tools on an MCP Agent Server [5]:

- workflows/list – list available workflows - workflows/{WorkflowName}/run – Execute the workflow (async) - workflows/{WorkflowName}/get_status – Check workflow status - workflows/{WorkflowName}/resume – Resume paused workflow (e.g. with human input) - workflows/{WorkflowName}/cancel – Terminate workflow

We’ve also implemented Temporal for durable execution [6], so agent workflows can be paused, resumed and retried in production settings.

This demo [7] shows Claude invoking an MCP agent server, running workflows when appropriate, and polling for status. It basically shows agentic behavior on both the MCP client and MCP server side.

We're excited about the potential this unlocks—especially as more applications become MCP-compatible clients. We'd love your feedback and ideas!

[1] - https://news.ycombinator.com/item?id=42867050

[2] - https://github.com/lastmile-ai/mcp-agent

[3] - https://www.anthropic.com/research/building-effective-agents

[4] - https://github.com/github/github-mcp-server

[5] - https://github.com/lastmile-ai/mcp-agent/tree/main/examples/...

[6] - https://github.com/lastmile-ai/mcp-agent/tree/main/examples/...

[7] - https://youtu.be/pLe2GAjEoYs [DEMO]

Comments

msamadi•10mo ago
This is a fascinating evolution of the MCP ecosystem. How are you thinking about agent discovery, authentication, and trust in a world where agents are both clients and servers
saqadri•10mo ago
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.

yujian•10mo ago
i've used this repo, it's a great starter pack
saqadri•10mo ago
Would love your feedback on the Temporal support and the MCP agent server concept which we merged in yesterday
SlimIon729•10mo ago
That's great to hear! We'd love to know more about your experience and any thoughts you have on it.
Beefin•10mo ago
Super cool direction. Making agents first-class MCP servers feels like a natural next step—especially for scaling multi-agent coordination across infra boundaries. Curious how you’re handling observability at the server level—do you expose structured logs or telemetry for workflows running across agents? This could be huge for debugging large-scale agentic chains.
saqadri•10mo ago
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.

datadrivenangel•10mo ago
Really cool, but it seems like recursive agents are going to bog down into microservice hell.
scottcha•10mo ago
Yeah, that was my first thought. I actually wrote a blog post a few weeks ago modeling the point at which agent recursion really gets out of control. https://www.neuralwatt.com/blog/agent-bedlam-a-future-of-end...
esafak•10mo ago
Agents should be given a time budget, which they can allot to other agents as they see fit. And it's easy to enforce: you kill the process after the allotted time.
saqadri•10mo ago
Agreed. Time, token, cost budget caps would be a great addition. Will add it as a feature request :)
SlimIon729•10mo ago
That's a valid concern. In `hacker-news-agents`, we're exploring ways to manage the complexity of multi-agent interactions. Perhaps a structured approach to agent communication and state could mitigate some of that 'microservice hell' feel.
saqadri•10mo ago
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.

max_on_hn•10mo ago
This is super cool! We use a similar approach for CheepCode: our agent process connects to an MCP server that then "drives" the rest of the interaction.

This paradigm feels like the obvious next step for agents. It more closely models human interaction (to the degree that this is desirable) and unlocks a lot of optimizations + powerful functionality.

It is going to be an exciting rest of the year!

3abiton•10mo ago
This a bit confusing, and maybe I am missing a piece of the puzzle, are mcp agents and mcp clients being used interchangeably?
saqadri•10mo ago
This diagram might be helpful: https://pbs.twimg.com/media/GrgGy2jWQAAittE?format=jpg&name=...

Are We Idiocracy Yet?

https://idiocracy.wtf/
378•jdiiufccuskal•2h ago•215 comments

LLM may be standardizing human expression – and subtly influencing how we think

https://dornsife.usc.edu/news/stories/ai-may-be-making-us-think-and-write-more-alike/
43•giuliomagnifico•57m ago•25 comments

We found an undocumented bug in the Apollo 11 guidance computer code

https://www.juxt.pro/blog/a-bug-on-the-dark-side-of-the-moon/
80•henrygarner•2h ago•37 comments

Show HN: Stop paying for Dropbox/Google Drive, use your own S3 bucket instead

https://locker.dev
28•Zm44•1h ago•17 comments

Show HN: Brutalist Concrete Laptop Stand (2024)

https://sam-burns.com/posts/concrete-laptop-stand/
31•sam-bee•1h ago•7 comments

Identify a London Underground Line just by listening to it

https://tubesoundquiz.com/
50•nelson687•2h ago•15 comments

Every GPU That Mattered

https://sheets.works/data-viz/every-gpu
134•jonbaer•3h ago•68 comments

Blackholing My Email

https://www.johnsto.co.uk/blog/blackholing-my-email/
49•semyonsh•3h ago•1 comments

Breaking the console: a brief history of video game security

https://sergioprado.blog/breaking-the-console-a-brief-history-of-video-game-security/
31•sprado•2h ago•3 comments

My Experience as a Rice Farmer

https://xd009642.github.io/2026/04/01/My-Experience-as-a-Rice-Farmer.html
204•surprisetalk•4d ago•89 comments

Running Out of Disk Space in Production

https://alt-romes.github.io/posts/2026-04-01-running-out-of-disk-space-on-launch.html
29•romes•3d ago•9 comments

Floating point from scratch: Hard Mode

https://essenceia.github.io/projects/floating_dragon/
29•random__duck•2d ago•3 comments

Show HN: Ghost Pepper – Local hold-to-talk speech-to-text for macOS

https://github.com/matthartman/ghost-pepper
411•MattHart88•16h ago•185 comments

Sam Altman may control our future – can he be trusted?

https://www.newyorker.com/magazine/2026/04/13/sam-altman-may-control-our-future-can-he-be-trusted
1543•adrianhon•1d ago•625 comments

Three hundred synths, 3 hardware projects, and one app

https://midi.guide/blog/three-hunded-synths-one-app/
67•ductionist•7h ago•3 comments

Issue: Claude Code is unusable for complex engineering tasks with Feb updates

https://github.com/anthropics/claude-code/issues/42796
1169•StanAngeloff•22h ago•637 comments

Second Revision of 6502 Laptop

https://codeberg.org/TechPaula/LT6502b
67•uticus•3d ago•13 comments

Solod – A subset of Go that translates to C

https://github.com/solod-dev/solod
146•TheWiggles•11h ago•36 comments

Launch HN: Freestyle – Sandboxes for Coding Agents

https://www.freestyle.sh/
291•benswerd•19h ago•149 comments

A cryptography engineer's perspective on quantum computing timelines

https://words.filippo.io/crqc-timeline/
504•thadt•20h ago•200 comments

Peptides: where to begin?

https://www.science.org/content/blog-post/ah-peptides-where-begin
193•A_D_E_P_T•15h ago•243 comments

Show HN: AdaShape-3D modeler for intuitive 3D printing parts / Windows 11

https://adashape.com
20•fsloth•2d ago•8 comments

German police name alleged leaders of GandCrab and REvil ransomware groups

https://krebsonsecurity.com/2026/04/germany-doxes-unkn-head-of-ru-ransomware-gangs-revil-gandcrab/
312•Bender•22h ago•154 comments

Apollo Guidance Computer restoration videos

https://www.curiousmarc.com/space/apollo-guidance-computer
71•mariuz•2d ago•10 comments

Show HN: GovAuctions lets you browse government auctions at once

https://www.govauctions.app/
292•player_piano•20h ago•82 comments

What being ripped off taught me

https://belief.horse/notes/what-being-ripped-off-taught-me/
428•doctorhandshake•23h ago•211 comments

AI singer now occupies eleven spots on iTunes singles chart

https://www.showbiz411.com/2026/04/05/itunes-takeover-by-fake-ai-singer-eddie-dalton-now-occupies...
212•flinner•20h ago•332 comments

Book review: There Is No Antimemetics Division

https://www.stephendiehl.com/posts/no_antimimetics/
269•ibobev•22h ago•195 comments

HackerRank (YC S11) Is Hiring

1•rvivek•15h ago

Show HN: Anos – a hand-written ~100KiB microkernel for x86-64 and RISC-V

https://github.com/roscopeco/anos
94•noone_youknow•3d ago•26 comments