Skip to content
Ignacio Perales

MCP and AI agents

I expose my own tools to AI agents over MCP, and I build software with agents in a spec-driven workflow.

trading-brief, a daily market brief I built, has an MCP endpoint so Claude Code can query it directly. Day to day, I develop in a spec-driven, agentic way with Claude Code.

Where I've used it

trading-brief

Own project

Own

A daily market brief that covers indexes, FX, commodities and the economic calendar.

Built

  • A Next.js app that builds the daily brief.
  • An MCP endpoint with get_brief, get_quotes, get_calendar and refresh_cache tools, so Claude Code can query it.
  • A disk cache with TTLs that falls back to cached data when a source rate-limits.
  • Next.js
  • MCP

Own practice

Anonymized · no name or link

Own

How I build software day to day.

Built

  • A spec-driven, agentic development workflow with Claude Code.
  • Claude Code

Architecture

trading-brief gathers market indexes, FX, commodities and the economic calendar into one daily brief, built with Next.js. The same app exposes an MCP endpoint with four tools:

  • get_brief
  • get_quotes
  • get_calendar
  • refresh_cache

Data sits in a disk cache with TTLs. When a data source rate-limits, the tools fall back to the cached data instead of failing.

trading-brief · MCP endpoint

    • Claude Code
    • get_brief
    • get_quotes
    • get_calendar
    • refresh_cache
    • Disk cachewith TTLs
    • Data sourcesindexes, FX, commodities, economic calendar
  • Service
  • Storage
  • External

Claude Code queries trading-brief through an MCP endpoint with four tools. The data sits in a disk cache with TTLs; when a data source rate-limits, the tools fall back to the cached data instead of failing.

Demo

Demo planned

This portfolio's public MCP server

A public MCP server and an /llms.txt file for this site, so agents can query my capabilities, evidence and CV directly.

Coming soonThis demo isn't built yet. The title and description above say what it will show.

Decisions & lessons

  1. Tools map to questions. Each tool answers one thing an agent would ask (the brief, the quotes, the calendar), plus one explicit action to refresh the cache.
  2. Stale beats empty. For an agent in the middle of a task, a cached answer after a rate limit is more useful than an error.
  3. Specs before agents. When I build with agents, I write the spec first and work from it.

Stack

  • MCP
  • Claude Code
  • Next.js