This repository was archived by the owner on Apr 8, 2025. It is now read-only.
docs(quickstart): fix quickstart guide for server node#253
Open
tresorama wants to merge 1 commit intomodelcontextprotocol:mainfrom
Open
docs(quickstart): fix quickstart guide for server node#253tresorama wants to merge 1 commit intomodelcontextprotocol:mainfrom
tresorama wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #252 . But please check it.
Motivation and Context
See #252 for error.
I don't know the code of thi repo, I only followed the Typecript type definition of
McpServerand refactoredimport { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { z } from "zod"; const NWS_API_BASE = "https://api.weather.gov"; const USER_AGENT = "weather-app/1.0"; // Create server instance - const server = new McpServer({ - name: "weather", - version: "1.0.0", - capabilities: { - resources: {}, - tools: {}, - }, - }); + const server = new McpServer({ + name: "weather", + version: "1.0.0", + },{ + capabilities: { + resources: {}, + tools: {}, + }, + });I supposed the docs is not updated after an APIchange.
How Has This Been Tested?
Not deeply. But Claude can now use the tool correctly.
Types of changes
Checklist
Additional context