Urgent.News

What's breaking now, across thousands of outlets.

Tech

osFoundry 的 MCP 工具清單會吃掉 Codex 多少 token,又該如何依專案精簡?

下面是 MCP 用戶端在 handshake 之後馬上會送出的呼叫。2026-11-06 從東京的一台 Mac 用 curl 打到 osFoundry 的伺服器,這個呼叫不需要 token: $ curl -s -D - -X POST https://api.osfoundry.io/api/v1/external-mcp \ -H 'content-type: application/json' \ -H 'accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' HTTP/2 200 content-type: application/json content-length: 45368…

The MCP client sends a call to the osFoundry server after a handshake, which does not require a token. This call includes a POST request to https://api.osfoundry.io/api/v1/external-mcp with a JSON payload containing the method "tools/list" and an empty params object. The server responds with a 200 status code and a JSON payload containing a list of 59 tools.

Each tool includes a name, title, description, input schema, and annotations. The Codex CLI uses a table called "mcp_servers.osfoundry" to connect to the server, and each request sent by the client includes one of the 59 tool declarations. The size of these declarations in tokens is approximately 7,609, depending on the included fields such as the name, description, and input schema.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in Tech

Hitting an exact file size when compressing images in the browser

India's chartered accountancy board caps the photo you upload with your exam form at 50 KB. South Africa's tax service wants supporting documents under 2 MB.

  • Different countries have varying maximum file size limits for uploaded photos.
  • JPEG quality setting doesn't directly correlate with file size.
  • Binary search efficiently finds the right JPEG quality for target file size.

Oxlint JS Plugins: Your Custom ESLint Rules No Longer Keep You on ESLint

Every team that has looked at Oxlint has hit the same wall. The benchmarks are great, the built-in rules cover most of what you use, and then someone remembers the twelve custom rules in…

  • Oxlint improves custom ESLint rules with hybrid Rust/JS approach
  • 80% of ESLint users can switch to Oxlint with minimal issues
  • Migration simple via npx @oxlint/migrate eslint.config.js command

Writing an MCP Server: The Tool Description Is the Whole API

Most first MCP servers look the same: someone wraps their existing REST API, exposes one tool per endpoint, ships it, and then watches the model call the wrong tool with the wrong arguments.

  • The tool description defines the entire API in MCP protocol.
  • SDK handles transport, discovery, and validation of tools.
  • Minimal server includes @modelcontextprotocol/server and @modelcontextprotocol/client packages.

More from Sunday 8 November →