frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: PolyMCP – AI-Callable Python and TS Tools with Inspector and Apps

1•justvugg•2h ago
I built PolyMCP, an open-source framework around the Model Context Protocol (MCP) that lets you turn any existing Python function into an MCP tool usable by AI agents — with no rewrites, no glue code, no custom wrappers.

Over the last weeks, PolyMCP has grown into a small ecosystem: • PolyMCP (core) – expose Python functions as MCP tools • PolyMCP Inspector – visual UI to explore, test, and debug MCP servers • PolyMCP MCP SDK Apps – build MCP-powered apps with tools + UI resources

⸻

1) Turn any Python function into an MCP tool

Basic example:

from polymcp import expose_tools_http

def add(a: int, b: int) -> int: """Add two numbers""" return a + b

app = expose_tools_http( tools=[add], title="Math Tools" )

Run it:

uvicorn server_mcp:app --reload

Now add is an MCP-compliant tool that any AI agent can discover and call.

No decorators, no schema files, no agent-specific SDKs.

⸻

2) Real APIs, not toy examples

Existing API code works as-is:

import requests from polymcp import expose_tools_http

def get_weather(city: str): """Return current weather data for a city""" response = requests.get( f"https://api.weatherapi.com/v1/current.json?q={city}" ) return response.json()

app = expose_tools_http([get_weather], title="Weather Tools")

Agents can now call:

get_weather("London")

and receive real-time data.

⸻

3) Business & internal workflows

Example: internal reporting logic reused directly by agents.

import pandas as pd from polymcp import expose_tools_http

def calculate_commissions(sales_data: list[dict]): """Calculate sales commissions from sales data""" df = pd.DataFrame(sales_data) df["commission"] = df["sales_amount"] * 0.05 return df.to_dict(orient="records")

app = expose_tools_http([calculate_commissions], title="Business Tools")

No rewriting legacy logic.

4) PolyMCP Inspector (visual debugging)

To make MCP development usable in practice, I added PolyMCP Inspector: • Visual UI to browse tools, prompts, and resources • Call MCP tools interactively • Inspect schemas, inputs, outputs, and errors • Multi-server support (HTTP + stdio) • Built-in chat playground (OpenAI / Anthropic / Ollama)

Think “Postman + DevTools” for MCP servers.

Repo: https://github.com/poly-mcp/PolyMCP-Inspector

⸻

5) MCP SDK Apps (tools + UI)

The latest addition is PolyMCP MCP SDK Apps: • Build MCP apps, not just tools • Expose: • tools • UI resources (HTML/JS dashboards) • app-level workflows • Let agents interact with both tools and UIs

This is useful for: • internal copilots • ops dashboards • support tools • enterprise AI frontends

Repo: https://github.com/poly-mcp/PolyMCP-MCP-SDK-Apps

⸻

Why this matters (especially for companies) • Reuse existing code immediately (scripts, APIs, internal libs) • Standard MCP interface instead of vendor-specific agent SDKs • Multiple tools, one server • Agent-driven orchestration, not hardcoded flows • Faster AI adoption without refactoring everything

PolyMCP treats AI agents as clients of your software, not magic wrappers around it.

⸻

Repos • Core framework: https://github.com/poly-mcp/PolyMCP • Inspector UI: https://github.com/poly-mcp/PolyMCP-Inspector • MCP SDK Apps: https://github.com/poly-mcp/PolyMCP-MCP-SDK-Apps

Happy to hear feedback from people building MCP servers, agents, or internal AI tools.

Nature's 'engine is grinding to a halt' as climate change gains pace

https://phys.org/news/2026-02-nature-halt-climate-gains-pace.html
2•bikenaga•1m ago•0 comments

Something Big Is Happening

https://twitter.com/mattshumer_/status/2021256989876109403
1•matthewsinclair•4m ago•1 comments

The smallest insects evolve anucleate neurons [pdf]

https://gbragafibra.github.io/papers/Polilov2012_wasp_neurons.pdf
1•Fibra•8m ago•0 comments

Scrap Labs – Metal 3D Printer

https://www.scraplabs3d.com/
1•cgg1•8m ago•0 comments

Collio is Live – your co-worker is here

https://collio.chat/
1•serin-ai•8m ago•1 comments

Patch Tuesday, February 2026 Edition

https://krebsonsecurity.com/2026/02/patch-tuesday-february-2026-edition/
1•todsacerdoti•8m ago•0 comments

Ask HN: What makes early-stage AI accelerators useful (and what doesn't)?

1•rdi_berkeley•9m ago•0 comments

Instantspaces – Remove space switching animation on macOS

https://github.com/flawnn/instantspaces
2•flawn•10m ago•0 comments

Go 1.26 Introduces Two Language Changes, New Performance Improvements

https://www.phoronix.com/news/Go-1.26-Released
1•mikece•13m ago•0 comments

Waku: The Minimal React Framework Reaches Alpha

https://www.infoq.com/news/2026/02/waku-react-framework/
1•mikece•13m ago•0 comments

The Singularity Is Always Near

https://kevinkelly.substack.com/p/the-singularity-is-always-near
1•lbrito•15m ago•0 comments

Discord clarifies approach to age assurance

https://discord.com/safety/how-discord-is-building-safer-experiences-for-teens
1•dm•15m ago•0 comments

Hacker News Alternative Where People Are Positive About AI

4•dunk010•16m ago•5 comments

Show HN: Berkeley Xcelerator – early-stage AI and agentic AI accelerator

https://rdi.berkeley.edu/xcelerator
1•rdi_berkeley•16m ago•0 comments

5-century tree-ring record reveals intensification of West Mediterranean storms

https://cp.copernicus.org/articles/21/2205/2025/
1•PaulHoule•18m ago•0 comments

Russia Further Restricts Telegram, Escalating Internet Clampdown

https://www.nytimes.com/2026/02/10/world/europe/telegram-throttled-internet-russia.html
1•jbegley•18m ago•0 comments

Private RAG and marketplace to sell your knowledge to AI agents

https://ragora.app
1•mregmi405•20m ago•1 comments

Debugging random slow writes with GIN indexes in PostgreSQL

https://iamsafts.com/posts/postgres-gin-performance/
2•fanf2•23m ago•1 comments

FOSDEM 2026: RISC-V Hardware Is Here. What About Software? [video]

https://fosdem.org/2026/schedule/event/983NCX-what-about-riscv-software/
1•pjmlp•25m ago•0 comments

The Future of the Global Open-Source AI Ecosystem: From DeepSeek to AI+

https://huggingface.co/blog/huggingface/one-year-since-the-deepseek-moment-blog-3
2•mariuz•25m ago•0 comments

Ask HN: What useful knowledge do you have that LLMs don't?

1•toephu2•25m ago•1 comments

Show HN: Give your OpenClaw agent a serverless back end

2•knutmartin•29m ago•0 comments

10xBench – one-shot coding in Astro, React and Tailwind

https://10xbench.ai/
1•psmyrdek•31m ago•1 comments

Chasing Satellites with My Geodesic Dome [video]

https://www.youtube.com/watch?v=_NwdWkWjH_c
1•emsign•32m ago•0 comments

Lamp Rubbers

https://www.thoughtmerchants.com/opinion/lamp-rubbers
1•deltamidway•32m ago•0 comments

Humanity's Last Programming Language

https://xeiaso.net/blog/2026/markdownlang/
3•jhvkjhk•34m ago•0 comments

An Innocuous Blog Post about vPMU in QEMU

https://vulpinecitrus.info/blog/qemu-vpmu-heterogenous-cpu/
1•mmozeiko•35m ago•0 comments

The Linux Load Average

https://logical.li/blog/load-average/
3•herTTTz•36m ago•0 comments

US embassy in London denies visas to executives over minor offences

https://www.ft.com/content/a38dd4ce-08ce-48d8-b112-47167e4a703c
3•samaysharma•37m ago•2 comments

Adventures in Neural Rendering

https://interplayoflight.wordpress.com/2026/02/10/adventures-in-neural-rendering/
1•ingve•39m ago•0 comments