ChatGPT · AgentsDatos
MCP report agent for real estate agencies
Reads local files over MCP and computes real estate agencies KPIs.
by Prompt Studio
agents-sdktypescriptmcp
License: MITView original
Contents
Where it goes: mcp-report-real-estate.ts
// Agente que lee archivos locales de una inmobiliaria con un servidor MCP y arma un reporte.
// npm install @openai/agents
import { Agent, run, MCPServerStdio } from '@openai/agents';
const archivos = new MCPServerStdio({
name: 'archivos',
fullCommand: 'npx -y @modelcontextprotocol/server-filesystem ./reportes',
});
await archivos.connect();
try {
const analista = new Agent({
name: 'Analista',
instructions:
'Lee los archivos de ./reportes y calcula días en el mercado, tasa de cierre y comisión promedio. ' +
'Devuelve una tabla por mes y tres observaciones. No modifiques archivos.',
mcpServers: [archivos],
});
const result = await run(analista, 'Haz el reporte del último trimestre');
console.log(result.finalOutput);
} finally {
await archivos.close();
}
More in Agents
Support with handoffs
A triage agent that hands off to billing or tech support.
Web researcher
Searches the web, cites sources and writes a short report.
Analyst with guardrails
TypeScript agent with a custom tool and an input guardrail.
Lead qualifier
Researches the lead company and returns a structured score.
Operations assistant for restaurants
Agent with function tools for day-to-day restaurants work.
Triage with handoffs for restaurants
Front-desk agent that hands off customers of restaurants.