Settings

Theme

Show HN: MCP-skill – generate Python skills from MCP servers

github.com

2 points by manojbajaj95 5 days ago · 1 comment · 1 min read

Reader

I've been experimenting with MCP-based agents for some of my daily workflows (checking assigned issues, gathering context, drafting plans, etc.).

With most agent frameworks, tool calls run in a loop like this:

agent → tool → agent → tool → agent → tool

Each step goes back through the model. For tools returning large payloads, this adds latency and burns tokens.

So I built a small tool that converts an MCP server into a Python skill.

It introspects the server and generates a typed Python class where each tool becomes an async method.

Example:

    issue = await github.get_issue(issue_id)
    docs = await search.web_search(issue.title)
The agent can process results locally in code and only return the final output.

This also enables progressive disclosure. Tools can return large responses, but the agent can filter or aggregate data in code instead of sending everything back into the model context.

The generated skills include a `SKILL.md` file and can be reused later, so useful workflows can be saved and run again as scripts.

Still a work in progress, but already useful in my own setup.

Would love feedback from others experimenting with MCP or similar patterns.

Repo: https://github.com/manojbajaj95/mcp-skill

manojbajaj95OP 5 days ago

Happy to answer questions about how the code generation works or how this integrates with Claude Code.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection