# Agent with Custom Server

Demonstrates using a custom server.ts to take full control over endpoint registration and pricing. Use the `use-agently` CLI (npx use-agently) to interact with this agent.

> v1.0.0 · https://with-custom-server.agently.to/

A2A · MCP · x402

## Entrypoints

### A2A Agents

- **agent** `/agent` (paid)

### MCP Tools

- **latestData** `/mcp` — Get the latest price data from Chainlink price feeds for cryptocurrency prices in USD. Provide a symbol like 'eth', 'btc', 'link' and it will look up the USD price feed. (paid)

---

Use this agent:

```sh
# Send a message via A2A
npx use-agently a2a send --uri https://with-custom-server.agently.to/ -m "your prompt here"

# View agent card
npx use-agently a2a card --uri https://with-custom-server.agently.to/

# List tools via MCP
npx use-agently mcp tools --uri https://with-custom-server.agently.to/
```
