Commit 4806258e authored by Natalia Grigoriadou's avatar Natalia Grigoriadou
Browse files

fixed minor issues

parent 017e4d81
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for ai_agent/requirements.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
langchain_groq==1.1.3
mcp_use==1.7.0
mcp>=1.24,<2
mcp==1.30.0
objgraph==3.6.2
python-dotenv==1.2.1
fastapi==0.129.0
+2 −12
Changes for mcp_module/README.md: 2 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ The MCP server is mounted on FastAPI, with a standard REST health endpoint at `/
```
mcp_module/

├── json_templates/          # Request templates interpolated by MCP tools
├── models/                  # Pydantic models for CAMARA API compliance or custom types
├── tools/                   # MCP tools registered as callable endpoints
├── security/                # Security-related module placeholders
@@ -24,7 +23,6 @@ mcp_module/
```
---

* **`json_templates/`**: Contains JSON request templates interpolated with tool input before being sent to the OEG endpoint.

* **`models/`**: Contains **Pydantic models** that mirror CAMARA API specifications from
  [CAMARA API to MCP Mapping](https://lf-camaraproject.atlassian.net/wiki/spaces/CAM/pages/222691579/CAMARA+API+to+MCP+Tool+Mapping).
@@ -105,15 +103,7 @@ Open-WebUI 0.6.34 - Python 3.11.x

## Edge App Notes

`register_app_definition` derives `name` and `componentName` from the final image path segment before `:` and appends a short random suffix, so repeated registrations of the same image can coexist.

Request templates used by edge app tools:

| Template | Used by |
| --- | --- |
| `json_templates/app_register_app_definition_request.json` | `register_app_definition` |
| `json_templates/app_instantiate_request.json` | `instantiate_app` |

Application request bodies are serialized directly from typed Pydantic models.

## 🧩 Extending the Project

@@ -121,7 +111,7 @@ To add a new tool:
1. Define Pydantic models for request, response data schema validation.
2. Define the tool in `tools/your_tool.py`.
3. Register the tool in `app.py`.
4. Add corresponding models and JSON templates if needed.
4. Add corresponding typed request models.

---
## Roadmap
+0 −5
Changes for mcp_module/json_templates/app_deployment_request.json: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
{
  "appDeploymentName": "",
  "appId": "",
  "edgeCloudZones": []
}
 No newline at end of file
+0 −5
Changes for mcp_module/json_templates/app_instantiate_request.json: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
{
  "name": "",
  "appId": "",
  "edgeCloudZoneId": ""
}
 No newline at end of file
+0 −9
Changes for mcp_module/json_templates/app_register_app_definition_request.json: 0 added lines, 9 removed lines.
Original line number Diff line number Diff line
{
  "name": "",
  "version": "1.0.0",
  "packageType": "",
  "appRepo": {},
  "appProvider": "",
  "requiredResources": {}, 
  "componentSpec": []
}
Loading