Agent documentation
Explore the CV and publications with an agent
Explore the CV and publications with MCP or A2A. Ready-to-use Python and TypeScript examples.
Your first request
Discover the shared card: it describes both CV and publication skills. Use a specialized card to explore a single catalogue.
curl --fail-with-body 'https://mteprojet.fr/.well-known/agent-card.json'- Choose a catalogue: cv or publications.
- Save a Python or TypeScript example using the filename shown.
- Run the matching command: the examples search the CV for Azure and publications for NLP.
Current server : https://mteprojet.fr. Endpoints and examples use the server on which this page is open.
Cards and endpoints
Each card describes the available skills and the URL of its A2A interface.
CV
Skill : public-cv-search
https://mteprojet.fr/cv/.well-known/agent-card.jsonMCP ↗
https://mteprojet.fr/agents/cv/mcpA2A ↗
https://mteprojet.fr/api/agents/cv/a2a
Publications
Skill : public-publications-search
https://mteprojet.fr/publications/.well-known/agent-card.jsonMCP ↗
https://mteprojet.fr/agents/publications/mcpA2A ↗
https://mteprojet.fr/api/agents/publications/a2a
Shared card : https://mteprojet.fr/.well-known/agent-card.jsonThe /api/agents/portfolio/a2a interface searches both catalogues. Results include their public sources.
Python and TypeScript examples
MCP discovers and calls named tools. A2A receives a message and returns matching public entries.
Python MCP uses FastMCP; TypeScript MCP uses the official MCP SDK. A2A examples use Strands through a dedicated A2A 0.3 compatibility interface, separate from the A2A 1.0 endpoints listed above. No local model or API key is required.
Python 3.11 or newer, in a virtual environment. Install the dependencies listed below. Save the code as mcp_demo.py.
import asyncio
import json
from fastmcp import Client
BASE = "https://mteprojet.fr"
async def main():
for catalogue, query in [("cv", "Azure"), ("publications", "NLP")]:
# FastMCP handles connection and tool discovery.
async with Client(
BASE + f"/agents/{catalogue}/mcp",
mode="legacy", timeout=20,
) as client:
tools = await client.list_tools()
print("Tools:", [tool.name for tool in tools])
result = await client.call_tool(
f"{catalogue}_search_all", {"query": query, "limit": 3}
)
print(catalogue, json.dumps(result.data, ensure_ascii=False, indent=2))
asyncio.run(main())
python3 -m pip install "fastmcp==4.1.2"
python3 mcp_demo.pyMCP prints tools and search results. A2A prints titles and source links. An empty list means no entries match the search.
Understanding messages
| Field | Usage |
|---|---|
jsonrpc / id | Version 2.0 and a request identifier used to match the response. |
tools/call | MCP: the tool name and its query and limit arguments. |
SendMessage | A2A: a ROLE_USER message with one data or text part. |
source | Public entry URL for verifying the result. |
View a syntax-highlighted JSON example
{
"jsonrpc": "2.0",
"id": "publications-demo",
"method": "SendMessage",
"params": {
"message": {
"messageId": "message-1",
"role": "ROLE_USER",
"parts": [
{
"data": {
"query": "NLP",
"limit": 3
}
}
]
}
}
}Public access and administration
Public interfaces are read-only and expose published content only. Do not send administrator credentials to run these examples.
Creation, editing and editorial assistance require an administrator login. Review and explicitly apply assistant suggestions in the form; suggestions do not automatically publish content. Never share credentials, session cookies or keys in public requests.
Using public data
These interfaces provide access to published content. The examples do not require an API key. They do not grant permission to modify data.
Send only public search terms. Check the sources before reusing a result.
If a request fails, check the endpoint, JSON format and arguments. If the service asks you to wait, follow the delay indicated by Retry-After.