We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed3378 commit 7b2babaCopy full SHA for 7b2baba
1 file changed
src/MCP/Tools/RestTool.php
@@ -43,7 +43,7 @@ public function cache_ttl(): int {
43
* @return string Full route (e.g. '/saltus-framework/v1/models').
44
*/
45
protected function mcp_route( string $path ): string {
46
- return esc_url_raw( '/' . MCPConfig::get_namespace() . $path );
+ return '/' . trim( MCPConfig::get_namespace(), '/' ) . '/' . ltrim( $path, '/' );
47
}
48
49
/**
0 commit comments