✅ Correct URL:
https://langchain-agent-mcp-server-554655392699.us-central1.run.app
❌ Incorrect URL (has typo):
https://langchain-agent-mcp-server-554655392699.us-centrall.run.app
In SlashMCP, run:
/slashmcp remove langchain-agent
/slashmcp add langchain-agent https://langchain-agent-mcp-server-554655392699.us-central1.run.app
/slashmcp list
You should see:
langchain-agent (srv_xxxxx)- active, auth: no auth
Once registered correctly, invoke the agent:
/srv_xxxxx agent_executor query="What is the capital of France?"
Or using the server ID directly:
/slashmcp invoke srv_xxxxx agent_executor query="Your question here"
The service exposes these MCP-compliant endpoints:
- GET /mcp/manifest - Returns tool definitions
- POST /mcp/invoke - Executes the agent
{
"tool": "agent_executor",
"arguments": {
"query": "Your question here"
}
}{
"content": [
{
"type": "text",
"text": "Agent response here..."
}
],
"isError": false
}If you get 404 errors:
- ✅ Verify the URL is correct (no typos)
- ✅ Check the service is running:
https://langchain-agent-mcp-server-554655392699.us-central1.run.app/health - ✅ Verify manifest endpoint:
https://langchain-agent-mcp-server-554655392699.us-central1.run.app/mcp/manifest
If "MCP gateway request failed":
- The SlashMCP gateway might be trying to access a different endpoint
- Verify the service URL is accessible from the internet
- Check if there are any CORS issues (should be configured to allow all origins)
If the agent doesn't respond:
- Check service logs:
gcloud run services logs read langchain-agent-mcp-server ` --platform managed ` --region us-central1 ` --project slashmcp
- Verify API key is set correctly
- Test the endpoint directly:
$body = @{ tool = "agent_executor" arguments = @{ query = "test" } } | ConvertTo-Json Invoke-WebRequest -Uri "https://langchain-agent-mcp-server-554655392699.us-central1.run.app/mcp/invoke" ` -Method POST ` -ContentType "application/json" ` -Body $body
- Status: ✅ Running
- URL: https://langchain-agent-mcp-server-554655392699.us-central1.run.app
- API Key: ✅ Configured
- Endpoints: ✅ Working
Fix the typo in the URL and re-register to resolve the 404 errors!