-
Notifications
You must be signed in to change notification settings - Fork 3
Feat: add mcp server #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Lukas Schaefer <[email protected]>
66b9525 to
e313892
Compare
Signed-off-by: Lukas Schaefer <[email protected]>
e313892 to
1319bec
Compare
Signed-off-by: Lukas Schaefer <[email protected]>
143e0fd to
d99f46e
Compare
Signed-off-by: Lukas Schaefer <[email protected]>
Signed-off-by: Lukas Schaefer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Model Context Protocol (MCP) server functionality to the Nextcloud Context Agent, exposing available tools through a standardized MCP interface for external AI systems to consume.
Key changes:
- Integrates FastMCP library to create an MCP server with user authentication and dynamic tool loading
- Adds MCP server routing configuration to expose the server at
/mcpendpoint - Implements middleware for user authentication and dynamic tool registration
Reviewed Changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Adds fastmcp dependency for MCP server functionality |
| ex_app/lib/mcp_server.py | Core MCP server implementation with authentication and tool management |
| ex_app/lib/main.py | Integrates MCP server into main FastAPI application with proper lifecycle management |
| appinfo/info.xml | Configures routing for MCP endpoints through app API proxy |
| ex_app/lib/tools.py | Removes unused import that is no longer needed |
| ex_app/lib/all_tools/calendar.py | Minor formatting change (empty line addition) |
| ex_app/lib/all_tools/audio2text.py | Minor formatting change (empty line addition) |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Signed-off-by: Lukas Schaefer <[email protected]>
Exposes an MCP server with all tools that are a function on the route
/index.php/apps/app_api/proxy/context_agent/mcp/when exposed through app api proxyNotes/WIP
Have been using https://github.com/modelcontextprotocol/inspector to test it.