Skip to content

Commit fd1538f

Browse files
authored
Merge pull request #8448 from microsoft/mcp-api-links
Fix relative links in API doc
2 parents b65b7dd + ed85eee commit fd1538f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/extension-guides/mcp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ MetaDescription: A guide to registering an MCP server in a VS Code extension.
99

1010
# MCP servers
1111

12-
Model Context Protocol (MCP) is an open standard that enables AI models to interact with external tools and services through a unified interface. Visual Studio Code can act as an MCP client, which enables users to [access MCP tools in agent mode](/docs/copilot/chat/mcp-servers.md). This article guides you through registering an MCP server in a VS Code extension.
12+
Model Context Protocol (MCP) is an open standard that enables AI models to interact with external tools and services through a unified interface. Visual Studio Code can act as an MCP client, which enables users to [access MCP tools in agent mode](/docs/copilot/chat/mcp-servers). This article guides you through registering an MCP server in a VS Code extension.
1313

1414
VS Code retrieves MCP server configurations from `.vscode/mcp.json` files in workspace folders and the `mcp` section of workspace, remote, and user settings. It can also automatically discover them from other tools' configuration, including Claude Desktop.
1515

1616
VS Code extensions can also register MCP server configurations programmatically to avoid that users need to manually configure them. This is useful if you already have an MCP server and want to register it as part of your extension activation, or if your extension has a dependency on an MCP server.
1717

18-
Instead of using MCP servers to extend the chat functionality, you can also [contribute language model tools](/api/extension-guides/tools.md) directly within your extension. This approach is useful if you want to deeply integrate with VS Code by using extension APIs or to avoid that users have to install and run an MCP server in a separate process.
18+
Instead of using MCP servers to extend the chat functionality, you can also [contribute language model tools](/api/extension-guides/tools) directly within your extension. This approach is useful if you want to deeply integrate with VS Code by using extension APIs or to avoid that users have to install and run an MCP server in a separate process.
1919

2020
> [!IMPORTANT]
2121
> MCP support in VS Code is in preview and the API for registering an MCP server in a VS Code extension is currently in a proposed state.
2222
2323
## Register an MCP server
2424

25-
To register an MCP server in your extension, use the `vscode.lm.registerMcpServerDefinitionProvider` API to provide the [MCP configuration](/docs/copilot/chat/mcp-servers.md#configuration-format) for the server. The API takes a `providerId` string and a `McpServerDefinitionProvider` object.
25+
To register an MCP server in your extension, use the `vscode.lm.registerMcpServerDefinitionProvider` API to provide the [MCP configuration](/docs/copilot/chat/mcp-servers#configuration-format) for the server. The API takes a `providerId` string and a `McpServerDefinitionProvider` object.
2626

2727
Before calling this method, extensions must contribute the `contributes.mcpServerDefinitionProviders` extension point in the `package.json` with the `id` of the provider.
2828

@@ -118,6 +118,6 @@ Get started with a full example of how to register an MCP server in a VS Code ex
118118
## Related content
119119
120120
- [Model Context Protocol Documentation](https://modelcontextprotocol.io/)
121-
- [Use MCP tools in agent mode](/docs/copilot/chat/mcp-servers.md)
122-
- [Contribute a language model tool](/api/extension-guides/tools.md)
123-
- [Language Model API reference](/api/references/vscode-api.md#lm)
121+
- [Use MCP tools in agent mode](/docs/copilot/chat/mcp-servers)
122+
- [Contribute a language model tool](/api/extension-guides/tools)
123+
- [Language Model API reference](/api/references/vscode-api#lm)

0 commit comments

Comments
 (0)