Skip to content

MCP documentation proxy - #7968

Open
labkey-matthewb wants to merge 5 commits into
developfrom
fb_documentation_proxy
Open

MCP documentation proxy#7968
labkey-matthewb wants to merge 5 commits into
developfrom
fb_documentation_proxy

Conversation

@labkey-matthewb

Copy link
Copy Markdown
Contributor

Rationale

Implement the DocumentationMCP tools on all servers using proxy requests to wwwlabkey.org

Related Pull Requests

Changes

@labkey-adam labkey-adam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DavController

if (getUser().isGuest())
{
return getResponse().sendError(WebdavStatus.SC_FORBIDDEN);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be part of this PR

var baseServerUrl = AppProps.getInstance().getBaseServerUrl();
try
{
return !(new URLHelper(documentationServer).getHost().equalsIgnoreCase(new URLHelper(baseServerUrl).getHost()));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment: "Don't allow proxying to yourself"

@labkey-adam

Copy link
Copy Markdown
Contributor

As a follow-up, consider implementing ProxyDocumentationService (default implementation of DocumentationService) and LocalDocumentationService (registered by ServiceTools... perhaps only if vector store is properly configured?). Then push relevant specifics into those impls and switch the MCP tools to unconditionally call the service endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants