Readit News logoReadit News
dangelov commented on Trading with Claude, and writing your own MCP server   dangelov.com/blog/trading... · Posted by u/dangelov
vFunct · 7 months ago
MCP everywhere is going to be such a societal changer. Once your bank and credit cards get MCP servers, that's it. It's next level society.

Like, immediately, I want it to order me some groceries based on what it sees in my fridge and what I cook.

And to remind me to change my air filters. Or book my vacation for me, knowing I like a mediterranean vibe and Bistecco Florentine.

I am absolutely excited for all of this. It really is as big as the iPhone.

dangelov · 7 months ago
Given some of the caveats I mentioned towards the end of the article I'd be a bit wary putting too much trust in LLMs for this use case at this stage. But the field is moving so fast that I don't doubt it will soon be less error prone than a human doing it.
dangelov commented on Trading with Claude, and writing your own MCP server   dangelov.com/blog/trading... · Posted by u/dangelov
maxwellg · 7 months ago
Sometimes Go can get under my skin. The MCP SDK makes you jump through all these hoops to configure tools according to a JSON schema, but when it comes to handling the actual request you need to deal with parsing everything again out of a `map[string]any`. It's such a pain to need to reach for codegen all the time.
dangelov · 7 months ago
Yeah it's not ideal, but it mostly works - at least in this case. I think each MCP tool works best when it can be kept lean and needs only a small number of arguments.
dangelov commented on Trading with Claude, and writing your own MCP server   dangelov.com/blog/trading... · Posted by u/dangelov
shireboy · 7 months ago
I’m trying to wrap my head around mcp but auth and security is still the confusing thing to me. In this case, I get there is an oauth redirect happening, but where is the token being stored? How would that work in an enterprise or saas environment where you want to expose an mcp for users but ensure they can only get “their” data? How does the LLm reliably tell the mcp who the current user is?
dangelov · 7 months ago
Author here.

There's basically a couple of different ways to implement an MCP server - for this demo it's a local binary that communicates over stdio, so no OAuth process is taking place. It's only meant to run on your local machine.

To make the demo simpler to explore and understand, the binary loads it's configuration (SnapTrade API client id, secret, and username and secret) from a .env file that you populate with your credentials which allows it to fetch the right data.

dangelov commented on Raspberry Pi Pico audio player   lucstechblog.blogspot.com... · Posted by u/zdw
dangelov · 10 months ago
I setup a project somewhat along these lines with a Raspberry Pi, a USB DAC, and spotifyd. Now I have a decent and convenient audio player hooked up to my sound system. May not pass all the bars for an audiophile but the sound quality is actually fairly decent - much better than my previous Alexa setup - which is all I needed.
dangelov commented on Skopje’s eccentric post office (2021)   new-east-archive.org/arti... · Posted by u/throne-of-lies
A_D_E_P_T · 10 months ago
Interesting to see this on the front page. I was in Skopje just a couple of weeks ago.

As the article notes, a lot of it was destroyed in an earthquake in the 1960s, so the government seized upon the opportunity to rebuild several major landmarks (like the main post office) in the then-fashionable raw concrete brutalist style.

That said, most of the post-60s residential blocs are not identifiably "brutalist" -- it's not Belgrade -- they're just bland and basically built as functionalist housing in the unloved "Khrushchyovka" style.

But that's not the interesting part. What's interesting is that since ~2010 the government has embarked on a "nation building" (and explicitly anti-Albanian) project with gaudy neoclassical buildings that are often likened to Caesar's Palace in Las Vegas. Kitsch. See, e.g., the fake galleon and its background: https://ibb.co/LTGwYZs

Much ink has been spilled on this matter.

> https://rs.boell.org/en/2021/01/29/neoliberal-manipulation-s...

Thing is, though, it looks good and Skopje is a very fun town to spend time in. The old market is great, the people are nice, and the much-criticized neoclassical buildings give the city a vibe that's both extraordinary (there are very few places like it) and coherent (the entire city is done up in just a small handful of architectural styles.)

dangelov · 10 months ago
I find it odd to brand it as "explicitly anti-Albanian" when the very article that was linked says

> With the end of the "Skopje 2014" project, not only the Macedonian nationalist hungry spirit was fed. Its counterpart, Albanian nationalism, got its part of the city to ill-treat, so the neighbouring Skanderbeg Square was turned into a nationalist showcase for another actor of the Macedonian ethnocratic elite.

But overall agree that it's over-the-top kitsch.

Deleted Comment

dangelov commented on Code Llama, a state-of-the-art large language model for coding   ai.meta.com/blog/code-lla... · Posted by u/marcopicentini
Draiken · 2 years ago
As a complete noob at actually running these models, what kind of hardware are we talking here? Couldn't pick that up from the README.

I absolutely love the idea of using one of these models without having to upload my source code to a tech giant.

dangelov · 2 years ago
I've used Ollama to run Llama 2 (all variants) on my 2020 Intel MacBook Pro - it's incredibly easy. You just install the app and run a couple of shell commands. I'm guessing soon-ish this model will be available too and then you'd be able to use it with the Continue VS Code extension.

Edited to add: Though somewhat slow, swap seems to have been a good enough replacement for not having the loads of RAM required. Ollama says "32 GB to run the 13B models", but I'm running the llama2:13b model on a 16 GB MBP.

dangelov commented on Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS   blog.timac.org/2022/0818-... · Posted by u/phenylene
dangelov · 3 years ago
I recently took to rewriting what should be a very simple app from Obj-C to Swift with SwiftUI - because it's the future. The CPU usage was at 5% while idle, just for having a simple tiny pie chart that updates. Not to mention that for some seemingly basic things I still had to use AppKit anyway.

Wrote basically the exact same thing 1 day later in Swift with AppKit and NO SwiftUI and it sits at 0% CPU usage with less code complexity. Maybe in a few years I will give SwiftUI another try.

dangelov commented on Show HN: Copper – A Go framework for your projects   github.com/gocopper/coppe... · Posted by u/tusharsoni
synergy20 · 3 years ago
So go is trying to be a server-side-render framework here, what about the SPA style in that go is a simple json-api server, and let SPA to do all the template and render, is gin the best framework for that? new to golang here.
dangelov · 3 years ago
I've been using Mux & sqlc in a few projects and it's working out great.

u/dangelov

KarmaCake day313June 28, 2013
About
I like learning, designing and building things.

https://dangelov.com & dino@dangelov.com

[ my public key: https://keybase.io/theangelov; my proof: https://keybase.io/theangelov/sigs/bgzJ1xE4aZ88A726uG5v1aHe-vZJ0gu1BbWn2NTnQIA ]

meet.hn/city/cr-San-José

---

View Original