frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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•1y ago
i've used this repo, it's a great starter pack
saqadri•1y ago
Would love your feedback on the Temporal support and the MCP agent server concept which we merged in yesterday
SlimIon729•
1y ago
That's great to hear! We'd love to know more about your experience and any thoughts you have on it.
Beefin•1y 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•1y 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•1y ago
Really cool, but it seems like recursive agents are going to bog down into microservice hell.
scottcha•1y 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•1y 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•1y ago
Agreed. Time, token, cost budget caps would be a great addition. Will add it as a feature request :)
SlimIon729•1y 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•1y 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•1y 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•1y 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•1y ago
This diagram might be helpful: https://pbs.twimg.com/media/GrgGy2jWQAAittE?format=jpg&name=...

Quad9 (DNS Resolver) to Exit France

https://quad9.net/news/blog/au-revoir-france/
282•farrokhi•2h ago•95 comments

eMudhra to exit global SSL/TLS certificate business

https://emudhra.com/en/press-release/emudhra-to-exit-global-ssl-tls-certificate-business
514•bo0tzz•3h ago•399 comments

What's Getting Pwned

https://pwn.watch/
161•mrkd•2h ago•97 comments

Show HN: Run full iOS 16.5 firmware on Android Devices

https://github.com/oosexgang/hackios-xnu-kernel
68•aghuang•1h ago•26 comments

Arc Is Sunsetting

https://arc.net/
33•suhdonghwi•31m ago•13 comments

What Is Gridifcation

https://musicalform.substack.com/p/what-is-gridifcation
244•gumby•3d ago•110 comments

Getting ready to operate GNU Taler in Germany

https://www.taler.net/en/news/2026-13.html
19•dewey•44m ago•1 comments

Jailbreaking the Switch 2

https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/
486•ledoge•8h ago•177 comments

Dungeon Generation in the Gnomish Mines of NetHack

https://www.boristhebrave.com/2026/10/18/dungeon-generation-in-the-gnomish-mines-of-nethack/
22•ibobev•3d ago•1 comments

Google cleared 300 hectares of Finnish forest

https://www.techspot.com/news/114100-google-cleared-300-hectares-finnish-forest-data-center.html
102•wetwater•1h ago•65 comments

Faster than earcut: triangulating 3.7M map polygons in 489 ms

https://globus.software/blog/2026/10/16/cutting-map-polygons/
150•molind•7h ago•33 comments

Show HN: Uberblok – an interactive museum of ZFS internals

https://uberblok.storagebits.workers.dev/
19•storagebits•1d ago•0 comments

The Last Museum: Semantic search across 5.8M artworks from major museums

https://lastmuseum.com/
49•surprisetalk•4h ago•17 comments

WorldTUI: I trained a 360M model to pretend to be a terminal

https://simedw.com/2026/10/21/world-model-terminal/
424•alphax314•14h ago•133 comments

VMMouse for NT 3.x: QEMU/VMware mouse integration driver

https://github.com/rhargreaves/vmmouse-nt3
28•kiyouta•3d ago•5 comments

Crystal 1.22

https://crystal-lang.org/2026/10/12/1.22.0-released/
118•ksec•3h ago•58 comments

Pentulive (Puppy Live) [video]

https://yle.fi/t/18-332106/fi
43•NaOH•3d ago•6 comments

MPs moving to restrict gambling ads in Canada

https://www.cbc.ca/news/investigates/gambling-ads-restrictions-canada-9.7388888
66•Teever•2h ago•16 comments

The recently proposed o(n log n) integer multiplication algorithm [pdf]

https://web.maths.unsw.edu.au/~davidharvey/research/subnlogn.pdf
285•craigcitro•14h ago•236 comments

The painter behind Manhattan’s Gilded Age interiors

https://engelsbergideas.com/notebook/the-unknown-painter-behind-manhattans-gilded-age-interiors/
40•hoffmannesque•1d ago•4 comments

Startup taps underwater volcano as energy source in "proof point" test

https://arstechnica.com/science/2026/10/startup-taps-underwater-volcano-as-energy-source-in-proof...
83•wffurr•2d ago•34 comments

Security Disclosure

https://blog.railway.com/p/security-disclosure-wednesday-october-21st
552•passenger•19h ago•321 comments

Amazon identifies Oct 17 PHP2Shell exploitation prior to public disclosure

https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitatio...
196•cubefox•5h ago•55 comments

Several Linux kernel vulnerabilities accidentally posted to public mailing list

https://www.phoronix.com/news/LKML-New-Trend-Vulnerabilities
206•mrkn1•5h ago•64 comments

Claude Duet

https://claude.com/product/claude-duet
511•kuberwastaken•21h ago•474 comments

Eigenmoon: linear algebra puzzles by moonlight

https://eigenmoon.vercel.app/
48•jessicarumbelow•2d ago•12 comments

No more icons in every menu by default

https://blog.jim-nielsen.com/2026/icons-in-every-menu/
433•riffraff•2d ago•245 comments

Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor

https://safedep.io/litellm-pypi-compromise-credential-stealer-backdoor/
580•abhisek•1d ago•187 comments

Using LLM for confidence scoring is a bad idea

https://rumple.github.io/blog/2026/10/20/asking-llm-for-confidence.html
178•jimauthors•1d ago•94 comments

SBD: We Have a Filesystem at Home

https://fly.io/blog/sprites-block-device/
34•torutofu•3h ago•26 comments