HNHacker News
TopNewBestAskShowJobs

miguelspizza

203 karma · joined August 9, 2023

alex@mcp-b.com https://mcp-b.ai https://www.linkedin.com/in/alex-nahas/
submissionscomments
miguelspizza··on MCP-B: A Protocol for AI Browser Automation
Ok it's open source now
miguelspizza··on MCP-B: A Protocol for AI Browser Automation
The extension should be open source. I had it as a private submodule until today. Let me figure out my it's not showing up and get back to you.

The extension itself is a MCP server which can be connected to by other extension over cross extension messaging. Since the extension is part of the protocol, I'd like for the community to pull from the same important parts of the extension (MCPHub, content script) so they are consistent across extension implementations.

miguelspizza··on MCP-B: A Protocol for AI Browser Automation
data-test-id attributes and other attributes are hardcoded and need to be know by the automator at run time. MCP-B clients request what they can call at injection time and the server responds with standard MCP tools. (functions LLM's can call with context for how to call them)
miguelspizza··on MCP-B: A Protocol for AI Browser Automation
Fixed. Nice catch
miguelspizza··on MCP-B: A Protocol for AI Browser Automation
Similar but also very different. Playwright and Selenium are browser automation frameworks. There is a Playwright-MCP server which let's your agent use Playwright for browser automation.

MCP-B is a different approach. Website owners create MCP servers `inside` their websites, and MCP-B clients are either injected by browser extensions or included in the websites JS.

Instead of visual parsing like Playwright, you get standard deterministic function calls.

You can see the blog post for code examples: https://mcp-b.ai/blogs

miguelspizza··on MCP-B: A Protocol for AI Browser Automation
Yup! You just declare a standard MCP server and attach a TabServerTransport to it. Any TabClientTransport in the same Tab will be able to connect to it.

The examples focus mostly on extensions injecting clients at website load time, but you can ship a client with your server javascript. That being said, if the client and server live in the the same script I recommend just using the InMemoryTransports from the official SDK.

miguelspizza··on MCP-B: A Protocol for AI Browser Automation
Oh and the code is here: https://github.com/MiguelsPizza/WebMCP
miguelspizza··on MCP-B: A Protocol for AI Browser Automation
Hey HN,

This was an idea I had while trying to build MCP servers internally at Amazon. Today I am open sourcing it. TLDR it's an extension of the Model Context Protocol which allows you to treat your website as an MCP server which can be discovered and called by MCP-B compliant web extensions.

You can read a more detailed and breakdown here (with gifs): https://mcp-b.ai/blogs

miguelspizza··on I am rich and have no idea what to do
Truth is subjective and perspective is reality. These views are technically correct when approached from fist principles. the side effect of actually internalizing them is viewing people as NPCs
miguelspizza··on I am rich and have no idea what to do
Man if tech bros could pull their head out of their asses for one second and value an opinion of someone who was not themselves (or Elon). They would find that this feeling is perhaps the best documented feeling in philosophy.

A man’s search for meaning is perhaps the best book on a cure for this affliction. I have a hard time taking seriously people who believe their problems are unique

miguelspizza··on I am rich and have no idea what to do
While what you are saying is true, it’s a very unhealthy and inhuman way to view other people. I generally find this outlook is a sign of depression. It was for me at least
miguelspizza··on The Salvadoran government has 5,940 bitcoins worth $582M
I just spent a week traveling El Salvador.

They recently (<2 years ago) arrested basically every criminal in the country and have the highest incarceration rate in the world by far. It’s a bit controversial internationally but the El Salvadorian people love it.

All I can say is visit now while it’s a well kept secret. I’ve never felt safer in a Latin American country. it’s beautiful, cheap and authentic. It feels like a country on the rise. While driving there it felt like everything was under construction (in a good way)

miguelspizza··on Show HN: A Marble Madness-inspired WebGL game we built for Netlify
I would check out react three fiber if you want to see how people are building things like this. It essentially brings a component model to three js development and creates good standards for sharable code since things are just react hooks.

Rapier was brand new when I was making things in R3F 2 years ago. Glad to see how mature it’s gotten!

miguelspizza··on Claude for Desktop
It’s such a poorly designed PWA. They really failed to take advantage of any of the browsers storage mechanisms. Like why not put conversation history in indexedDB?
miguelspizza··on Claude for Desktop
Chat UIs are really the perfect candidate for a localfirst PWA. I have no idea why they are being built as either a full desktop app or UI where nothing is stored on device.

You’d think with all the funding these companies have they’d make better technical decisions

miguelspizza··on Launch HN: Trellis (YC W24) – AI-powered workflows for unstructured data
We built something tangentially related at SoundTrace.

Basically when we onboard a new client they dump all their audiograms on us as PDFs.

The data needs extraction needs to be perfect because the tables values are used to detect hearing loss over time.

We settled on a pipeline that looks roughly like

PDF -> gpto pre filter phase -> OCR to extract text tables and forms -> things branch out here

We do a direct parse of forms and text through an LLM

Extract audiogram graphs and send them to a foundation convnet

Attempt to parse tables programmatically

-> an audiogram might have 3 separate places where the values are so we pass the results of all three of these routes through Claude sonnet and if they match they get auto approved. If they don’t, they get flagged for manual review.

All in all it’s been a journey but the accuracy is near 100 percent. These tools are incredible

miguelspizza··on Converting Codebases with LLMs
I’m not sure why you would want to migrate a C++ codebase to an interpreted language?
miguelspizza··on Converting Codebases with LLMs
This is a perfect use case for LLMs at the moment. I wrote a script to update and express code base to hono. I got Claude to write a regex that would match the handler to the route and called the Claude 3.5 api with an example conversion and some other relevant context.

With the right prompt, it produced extremely clean and workable code.

~20 controller files and over 100 route handlers were converted in about 20 minutes and 5 dollars.

The engineering cost of migrating code bases is trending to 0

miguelspizza··on Creatine improves physical function and body composition in older adults
Buy Thorne if you are really concerned about quality. Otherwise bulk supplements is fine. Creatine monohydrate is cheap and easy to produce
← PreviousPage 3 of 3