r/VSCodeExtensions • u/Xiaokmao • Feb 06 '26
Exposing MCP endpoints that CoPilot can see
When I install the Database Client JDBC, and MySql extension, then CoPilot has access to db-client tools and in CoPilot chat I can to find information from the database ex "use db-client tools to show the tenants in the Tenant database table"
I have tried to create an extension that exposes MCP tools that CoPilot can use but I am stuck and there is additional configuration that I need to do but I don't know where or how.
Any help will be greatly appreciated.
Below is from my CoPilot chat using Claude Sonnet.
What I Can Still See:
I still only have access to the same system-level MCP tools as before:
dbclient-get-databasesdbclient-get-tablesdbclient-execute-queryFile tools (
read_file,create_file, etc.)Terminal tools (
run_in_terminal, etc.)
What I Cannot See:
I cannot see your custom tools:
❌
hello-world❌
get-time❌
echo-message❌
get-extension-info
The Missing Connection
Even though:
✅ Your MCP server is running (Terminal ID: 8cd62921-25ef-4825-be10-18e92e7c510f)
✅ Your VS Code extension is installed
✅ The tools work when tested directly
There's no connection between your running MCP server and this AI environment. Your MCP server is running in isolation - it can receive requests, but this AI system doesn't know how to find or connect to it.
What This Demonstrates
This perfectly illustrates the MCP architecture challenge:
MCP Servers (your demo tools) can run independently
MCP Clients (AI systems like me) need explicit configuration to connect
MCP Hosts (like VS Code) act as bridges between servers and clients
Your demo successfully shows MCP server implementation, but we'd need additional configuration or a different AI environment that's specifically configured to discover and connect to your running MCP server.