Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Tailwind without utility soup: semantic CSS for Python web apps

I maintain fscss , a Python wrapper around FSCSS , and we just shipped 0.2.0 on PyPI and GitHub . The idea is simple: keep semantic CSS, but remove the repetitive parts. The problem Most Python web projects end up in one of two places: Hand-written CSS that grows into a wall of repeated spacing, colors, and mixin-like patterns. A utility-class framework that moves styling into templates and adds…

The article demonstrates how to interact with a remote MCP server using only Python's standard library, without requiring any additional packages or API keys. By leveraging JSON-RPC over HTTPS POST, the author shows how to connect to a real server at https://siftwright.com/mcp.

The author explains that communicating with the MCP server involves three key JSON-RPC methods: initialize, which establishes protocol version and server name; tools/list, which retrieves tool details; and tools/call, which runs a specified tool with provided arguments.

The article provides a concise Python script that showcases these concepts. It begins by importing necessary modules, setting the MCP_URL and an optional API_KEY for authenticated calls. The rpc function handles sending JSON-RPC requests, managing the request ID, and parsing responses. If an API key is provided, it's included in the request headers.

To demonstrate the functionality, the script performs three actions:

1. Calls initialize to confirm protocol version and obtain the server's title and supported protocol version.

2. Calls tools/list to retrieve a list of available tools, including domain_whois and pqc_scan, which can be used without an API key.

3. Calls domain_whois with a sample domain to retrieve WHOIS information without exceeding the daily limit.

The output of these three calls is then printed, providing a clear example of interacting with the MCP server using only the Python standard library.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

This story

This is one outlet's version. Read the fullest account.

Every outlet that reported this, and when →

Read the original at dev.to →

Report a problem with this story

More in Tech

Avatar Thumbnail Processing Explained — Node.js Sharp, Fixed Sizes, Private Storage

Short answer: save the untouched avatar under a new versioned key, generate square 32, 64, 128, and 256 pixel variants with Sharp, keep every object private, and store those keys in the user record.

  • Node.js Sharp creates unique assetId for each avatar update.
  • Stores original image and four fixed size WebP versions (32.webp, 64.webp, 128.webp, 256.webp).
  • User record points to assetId and five keys, not permanent URL.

Dirty deals cloud mayoral race

The race for the eThekwini mayoral chain is fraught with tension following allegations of vote-buying and the sudden resignation of five councillors ahead of a critical coalition vote.

How to Specify Password Reset Email Content Before Sending Marketplace Reports

Combining account recovery with report delivery saves a message but couples an expiring security action to an unrelated attachment; keep the two jobs separate.

  • Password reset email must contain unique, time-bound reset link
  • Email should have explicit expiration time and clear usage instructions
  • Support contact option required for recovery failures

More from Thursday 26 November →