diff --git a/README.md b/README.md
index 2cd74bd4..e3029dee 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,7 @@ Official integrations are maintained by companies building production ready MCP
-
**[AgentQL](https://github.com/tinyfish-io/agentql-mcp)** - Enable AI agents to get structured data from unstructured web with [AgentQL](https://www.agentql.com/).
-
**[AgentRPC](https://github.com/agentrpc/agentrpc)** - Connect to any function, any language, across network boundaries using [AgentRPC](https://www.agentrpc.com/).
-
**[Aiven](https://github.com/Aiven-Open/mcp-aiven)** - Navigate your [Aiven projects](https://go.aiven.io/mcp-server) and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services
+-
**[Apache IoTDB](https://github.com/apache/iotdb-mcp-server)** - MCP Server for [Apache IoTDB](https://github.com/apache/iotdb) database and its tools
-
**[Apify](https://github.com/apify/actors-mcp-server)** - [Actors MCP Server](https://apify.com/apify/actors-mcp-server): Use 3,000+ pre-built cloud tools to extract data from websites, e-commerce, social media, search engines, maps, and more
-
**[APIMatic MCP](https://github.com/apimatic/apimatic-validator-mcp)** - APIMatic MCP Server is used to validate OpenAPI specifications using [APIMatic](https://www.apimatic.io/). The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
-
**[Audiense Insights](https://github.com/AudienseCo/mcp-audiense-insights)** - Marketing insights and audience analysis from [Audiense](https://www.audiense.com/products/audiense-insights) reports, covering demographic, cultural, influencer, and content engagement analysis.
@@ -55,14 +56,17 @@ Official integrations are maintained by companies building production ready MCP
-
**[Chargebee](https://github.com/chargebee/agentkit/tree/main/modelcontextprotocol)** - MCP Server that connects AI agents to [Chargebee platform](https://www.chargebee.com).
-
**[Chroma](https://github.com/chroma-core/chroma-mcp)** - Embeddings, vector search, document storage, and full-text search with the open-source AI application database
-
**[Chronulus AI](https://github.com/ChronulusAI/chronulus-mcp)** - Predict anything with Chronulus AI forecasting and prediction agents.
+-
**[CircleCI](https://github.com/CircleCI-Public/mcp-server-circleci)** - Enable AI Agents to fix build failures from CircleCI.
-
**[ClickHouse](https://github.com/ClickHouse/mcp-clickhouse)** - Query your [ClickHouse](https://clickhouse.com/) database server.
-
**[Cloudflare](https://github.com/cloudflare/mcp-server-cloudflare)** - Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)
+-
**[CodeLogic](https://github.com/CodeLogicIncEngineering/codelogic-mcp-server)** - Interact with [CodeLogic](https://codelogic.com), a Software Intelligence platform that graphs complex code and data architecture dependencies, to boost AI accuracy and insight.
-
**[Comet Opik](https://github.com/comet-ml/opik-mcp)** - Query and analyze your [Opik](https://github.com/comet-ml/opik) logs, traces, prompts and all other telemtry data from your LLMs in natural language.
-
**[Convex](https://stack.convex.dev/convex-mcp-server)** - Introspect and query your apps deployed to Convex.
-
**[Dart](https://github.com/its-dart/dart-mcp-server)** - Interact with task, doc, and project data in [Dart](https://itsdart.com), an AI-native project management tool
-
**[DevHub](https://github.com/devhub/devhub-cms-mcp)** - Manage and utilize website content within the [DevHub](https://www.devhub.com) CMS platform
-
**[E2B](https://github.com/e2b-dev/mcp-server)** - Run code in secure sandboxes hosted by [E2B](https://e2b.dev)
-
**[EduBase](https://github.com/EduBase/MCP)** - Interact with [EduBase](https://www.edubase.net), a comprehensive e-learning platform with advanced quizzing, exam management, and content organization capabilities
+-
**[Elasticsearch](https://github.com/elastic/mcp-server-elasticsearch)** - Query your data in [Elasticsearch](https://www.elastic.co/elasticsearch)
-
**[eSignatures](https://github.com/esignaturescom/mcp-server-esignatures)** - Contract and template management for drafting, reviewing, and sending binding contracts.
-
**[Exa](https://github.com/exa-labs/exa-mcp-server)** - Search Engine made for AIs by [Exa](https://exa.ai)
-
**[Fewsats](https://github.com/Fewsats/fewsats-mcp)** - Enable AI Agents to purchase anything in a secure way using [Fewsats](https://fewsats.com)
@@ -85,6 +89,7 @@ Official integrations are maintained by companies building production ready MCP
-
**[JetBrains](https://github.com/JetBrains/mcp-jetbrains)** – Work on your code with JetBrains IDEs
-
**[Kagi Search](https://github.com/kagisearch/kagimcp)** - Search the web using Kagi's search API
-
**[Keboola](https://github.com/keboola/keboola-mcp-server)** - Build robust data workflows, integrations, and analytics on a single intuitive platform.
+-
**[Lara Translate](https://github.com/translated/lara-mcp)** - MCP Server for Lara Translate API, enabling powerful translation capabilities with support for language detection and context-aware translations.
-
**[Logfire](https://github.com/pydantic/logfire-mcp)** - Provides access to OpenTelemetry traces and metrics through Logfire.
-
**[Langfuse Prompt Management](https://github.com/langfuse/mcp-server-langfuse)** - Open-source tool for collaborative editing, versioning, evaluating, and releasing prompts.
-
**[Lingo.dev](https://github.com/lingodotdev/lingo.dev/blob/main/mcp.md)** - Make your AI agent speak every language on the planet, using [Lingo.dev](https://lingo.dev) Localization Engine.
@@ -100,6 +105,7 @@ Official integrations are maintained by companies building production ready MCP
-
**[OceanBase](https://github.com/oceanbase/mcp-oceanbase)** - MCP Server for OceanBase database and its tools
-
**[Octagon](https://github.com/OctagonAI/octagon-mcp-server)** - Deliver real-time investment research with extensive private and public market data.
-
**[Oxylabs](https://github.com/oxylabs/oxylabs-mcp)** - Scrape websites with Oxylabs Web API, supporting dynamic rendering and parsing for structured data extraction.
+-
**[PayPal](https://mcp.paypal.com)** - PayPal's official MCP server.
-
**[Perplexity](https://github.com/ppl-ai/modelcontextprotocol)** - An MCP server that connects to Perplexity's Sonar API, enabling real-time web-wide research in conversational AI.
-
**[Qdrant](https://github.com/qdrant/mcp-server-qdrant/)** - Implement semantic memory layer on top of the Qdrant vector search engine
-
**[Ramp](https://github.com/ramp-public/ramp-mcp)** - Interact with [Ramp](https://ramp.com)'s Developer API to run analysis on your spend and gain insights leveraging LLMs
@@ -131,6 +137,7 @@ A growing set of community-developed and maintained servers demonstrates various
> **Note:** Community servers are **untested** and should be used at **your own risk**. They are not affiliated with or endorsed by Anthropic.
- **[Ableton Live](https://github.com/Simon-Kansara/ableton-live-mcp-server)** - an MCP server to control Ableton Live.
- **[Airbnb](https://github.com/openbnb-org/mcp-server-airbnb)** - Provides tools to search Airbnb and get listing details.
+- **[AI Agent Marketplace Index](https://github.com/AI-Agent-Hub/ai-agent-marketplace-index-mcp)** - MCP server to search more than 5000+ AI agents and tools of various categories from [AI Agent Marketplace Index](http://www.deepnlp.org/store/ai-agent) and monitor traffic of AI Agents.
- **[Algorand](https://github.com/GoPlausible/algorand-mcp)** - A comprehensive MCP server for tooling interactions (40+) and resource accessibility (60+) plus many useful prompts for interacting with the Algorand blockchain.
- **[Airflow](https://github.com/yangkyeongmo/mcp-server-apache-airflow)** - A MCP Server that connects to [Apache Airflow](https://airflow.apache.org/) using official python client.
- **[Airtable](https://github.com/domdomegg/airtable-mcp-server)** - Read and write access to [Airtable](https://airtable.com/) databases, with schema inspection.
@@ -176,6 +183,7 @@ A growing set of community-developed and maintained servers demonstrates various
- **[cryptopanic-mcp-server](https://github.com/kukapay/cryptopanic-mcp-server)** - Providing latest cryptocurrency news to AI agents, powered by CryptoPanic.
- **[Dappier](https://github.com/DappierAI/dappier-mcp)** - Connect LLMs to real-time, rights-cleared, proprietary data from trusted sources. Access specialized models for Real-Time Web Search, News, Sports, Financial Data, Crypto, and premium publisher content. Explore data models at [marketplace.dappier.com](https://marketplace.dappier.com/marketplace).
- **[Databricks](https://github.com/JordiNeil/mcp-databricks-server)** - Allows LLMs to run SQL queries, list and get details of jobs executions in a Databricks account.
+- **[Datadog](https://github.com/GeLi2001/datadog-mcp-server)** - Datadog MCP Server for application tracing, monitoring, dashboard, incidents queries built on official datadog api.
- **[Data Exploration](https://github.com/reading-plus-ai/mcp-server-data-exploration)** - MCP server for autonomous data exploration on .csv-based datasets, providing intelligent insights with minimal effort. NOTE: Will execute arbitrary Python code on your machine, please use with caution!
- **[Dataset Viewer](https://github.com/privetin/dataset-viewer)** - Browse and analyze Hugging Face datasets with features like search, filtering, statistics, and data export
- **[DBHub](https://github.com/bytebase/dbhub/)** - Universal database MCP server connecting to MySQL, PostgreSQL, SQLite, DuckDB and etc.
@@ -236,6 +244,7 @@ A growing set of community-developed and maintained servers demonstrates various
- **[InfluxDB](https://github.com/idoru/influxdb-mcp-server)** - Run queries against InfluxDB OSS API v2.
- **[Inoyu](https://github.com/sergehuber/inoyu-mcp-unomi-server)** - Interact with an Apache Unomi CDP customer data platform to retrieve and update customer profiles
- **[Intercom](https://github.com/raoulbia-ai/mcp-server-for-intercom)** - An MCP-compliant server for retrieving customer support tickets from Intercom. This tool enables AI assistants like Claude Desktop and Cline to access and analyze your Intercom support tickets.
+- **[iOS Simulator](https://github.com/InditexTech/mcp-server-simulator-ios-idb)** - A Model Context Protocol (MCP) server that enables LLMs to interact with iOS simulators (iPhone, iPad, etc.) through natural language commands.
- **[iTerm MCP](https://github.com/ferrislucas/iterm-mcp)** - Integration with iTerm2 terminal emulator for macOS, enabling LLMs to execute and monitor terminal commands.
- **[JavaFX](https://github.com/mcpso/mcp-server-javafx)** - Make drawings using a JavaFX canvas
- **[JDBC](https://github.com/quarkiverse/quarkus-mcp-servers/tree/main/jdbc)** - Connect to any JDBC-compatible database and query, insert, update, delete, and more. Supports MySQL, PostgreSQL, Oracle, SQL Server, sqllite and [more](https://github.com/quarkiverse/quarkus-mcp-servers/tree/main/jdbc#supported-jdbc-variants).
@@ -269,6 +278,7 @@ A growing set of community-developed and maintained servers demonstrates various
- **[MSSQL-Python](https://github.com/amornpan/py-mcp-mssql)** (by amornpan) - A read-only Python implementation for MSSQL database access with enhanced security features, configurable access controls, and schema inspection capabilities. Focuses on safe database interaction through Python ecosystem.
- **[MSSQL-MCP](https://github.com/daobataotie/mssql-mcp)** (by daobataotie) - MSSQL MCP that refer to the official website's SQLite MCP for modifications to adapt to MSSQL
- **[Markdownify](https://github.com/zcaceres/mcp-markdownify-server)** - MCP to convert almost anything to Markdown (PPTX, HTML, PDF, Youtube Transcripts and more)
+- **[Microsoft Teams](https://github.com/InditexTech/mcp-teams-server)** - MCP server that integrates Microsoft Teams messaging (read, post, mention, list members and threads)
- **[Mindmap](https://github.com/YuChenSSR/mindmap-mcp-server)** (by YuChenSSR) - A server that generates mindmaps from input containing markdown code.
- **[Minima](https://github.com/dmayboroda/minima)** - MCP server for RAG on local files
- **[Mobile MCP](https://github.com/mobile-next/mobile-mcp)** (by Mobile Next) - MCP server for Mobile(iOS/Android) automation, app scraping and development using physical devices or simulators/emulators.
@@ -280,6 +290,7 @@ A growing set of community-developed and maintained servers demonstrates various
- **[MySQL](https://github.com/designcomputer/mysql_mcp_server)** (by DesignComputer) - MySQL database integration in Python with configurable access controls and schema inspection
- **[n8n](https://github.com/leonardsellem/n8n-mcp-server)** - This MCP server provides tools and resources for AI assistants to manage n8n workflows and executions, including listing, creating, updating, and deleting workflows, as well as monitoring their execution status.
- **[NASA](https://github.com/ProgramComputer/NASA-MCP-server)** (by ProgramComputer) - Access to a unified gateway of NASA's data sources including but not limited to APOD, NEO, EPIC, GIBS.
+- **[Nasdaq Data Link](https://github.com/stefanoamorelli/nasdaq-data-link-mcp)** (by stefanoamorelli) - An MCP server to access, explore, and interact with Nasdaq Data Link’s extensive and valuable financial and economic datasets.
- **[National Parks](https://github.com/KyrieTangSheng/mcp-server-nationalparks)** - The server provides latest information of park details, alerts, visitor centers, campgrounds, hiking trails, and events for U.S. National Parks.
- **[NAVER](https://github.com/pfldy2850/py-mcp-naver)** (by pfldy2850) - This MCP server provides tools to interact with various Naver services, such as searching blogs, news, books, and more.
- **[NS Travel Information](https://github.com/r-huijts/ns-mcp-server)** - Access Dutch Railways (NS) real-time train travel information and disruptions through the official NS API.
@@ -336,6 +347,7 @@ A growing set of community-developed and maintained servers demonstrates various
- **[Spotify](https://github.com/varunneal/spotify-mcp)** - This MCP allows an LLM to play and use Spotify.
- **[Starwind UI](https://github.com/Boston343/starwind-ui-mcp/)** - This MCP provides relevant commands, documentation, and other information to allow LLMs to take full advantage of Starwind UI's open source Astro components.
- **[Stripe](https://github.com/atharvagupta2003/mcp-stripe)** - This MCP allows integration with Stripe for handling payments, customers, and refunds.
+- **[ShaderToy](https://github.com/wilsonchenghy/ShaderToy-MCP)** - This MCP server lets LLMs to interact with the ShaderToy API, allowing LLMs to learn from compute shaders examples and enabling them to create complex GLSL shaders that they are previously not capable of.
- **[TMDB](https://github.com/Laksh-star/mcp-server-tmdb)** - This MCP server integrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.
- **[Tavily search](https://github.com/RamXX/mcp-tavily)** - An MCP server for Tavily's search & news API, with explicit site inclusions/exclusions
- **[Telegram](https://github.com/chigwell/telegram-mcp)** - An MCP server that provides paginated chat reading, message retrieval, and message sending capabilities for Telegram through Telethon integration.
@@ -407,8 +419,10 @@ Additional resources on MCP.
- **[mcp-guardian](https://github.com/eqtylab/mcp-guardian)** - GUI application + tools for proxying / managing control of MCP servers by **[EQTY Lab](https://eqtylab.io)**
- **[mcp-manager](https://github.com/zueai/mcp-manager)** - Simple Web UI to install and manage MCP servers for Claude Desktop by **[Zue](https://github.com/zueai)**
- **[MCPHub](https://github.com/Jeamee/MCPHub-Desktop)** – An Open Source MacOS & Windows GUI Desktop app for discovering, installing and managing MCP servers by **[Jeamee](https://github.com/jeamee)**
+- **[mcp.natoma.id](https://mcp.natoma.id)** - A Hosted MCP Platform to discover, install, manage and deploy MCP servers by **[Natoma Labs](https://www.natoma.id)**
- **[mcp.run](https://mcp.run)** - A hosted registry and control plane to install & run secure + portable MCP Servers.
- **[mcp-dockmaster](https://mcp-dockmaster.com)** - An Open-Sourced UI to install and manage MCP servers for Windows, Linux and MacOS.
+- **[MCP Servers Rating and User Reviews](http://www.deepnlp.org/store/ai-agent/mcp-server)** - Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
-
**[mkinf](https://mkinf.io)** - An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
- **[Open-Sourced MCP Servers Directory](https://github.com/chatmcp/mcp-directory)** - A curated list of MCP servers by **[mcpso](https://mcp.so)**
-
**[OpenTools](https://opentools.com)** - An open registry for finding, installing, and building with MCP servers by **[opentoolsteam](https://github.com/opentoolsteam)**
diff --git a/src/everything/CLAUDE.md b/src/everything/CLAUDE.md
new file mode 100644
index 00000000..9135020c
--- /dev/null
+++ b/src/everything/CLAUDE.md
@@ -0,0 +1,20 @@
+# MCP "Everything" Server - Development Guidelines
+
+## Build, Test & Run Commands
+- Build: `npm run build` - Compiles TypeScript to JavaScript
+- Watch mode: `npm run watch` - Watches for changes and rebuilds automatically
+- Run server: `npm run start` - Starts the MCP server using stdio transport
+- Run SSE server: `npm run start:sse` - Starts the MCP server with SSE transport
+- Prepare release: `npm run prepare` - Builds the project for publishing
+
+## Code Style Guidelines
+- Use ES modules with `.js` extension in import paths
+- Strictly type all functions and variables with TypeScript
+- Follow zod schema patterns for tool input validation
+- Prefer async/await over callbacks and Promise chains
+- Place all imports at top of file, grouped by external then internal
+- Use descriptive variable names that clearly indicate purpose
+- Implement proper cleanup for timers and resources in server shutdown
+- Follow camelCase for variables/functions, PascalCase for types/classes, UPPER_CASE for constants
+- Handle errors with try/catch blocks and provide clear error messages
+- Use consistent indentation (2 spaces) and trailing commas in multi-line objects
\ No newline at end of file
diff --git a/src/everything/README.md b/src/everything/README.md
index ff854ae7..f0c4a550 100644
--- a/src/everything/README.md
+++ b/src/everything/README.md
@@ -63,6 +63,15 @@ This MCP server attempts to exercise all the features of the MCP protocol. It is
}
```
+8. `getResourceReference`
+ - Returns a resource reference that can be used by MCP clients
+ - Inputs:
+ - `resourceId` (number, 1-100): ID of the resource to reference
+ - Returns: A resource reference with:
+ - Text introduction
+ - Embedded resource with `type: "resource"`
+ - Text instruction for using the resource URI
+
### Resources
The server provides 100 test resources in two formats:
@@ -96,6 +105,13 @@ Resource features:
- `style` (string): Output style preference
- Returns: Multi-turn conversation with images
+3. `resource_prompt`
+ - Demonstrates embedding resource references in prompts
+ - Required arguments:
+ - `resourceId` (number): ID of the resource to embed (1-100)
+ - Returns: Multi-turn conversation with an embedded resource reference
+ - Shows how to include resources directly in prompt messages
+
### Logging
The server sends random-leveled log messages every 15 seconds, e.g.:
diff --git a/src/everything/everything.ts b/src/everything/everything.ts
index 8ee80bf2..cee1e731 100644
--- a/src/everything/everything.ts
+++ b/src/everything/everything.ts
@@ -62,10 +62,21 @@ const EXAMPLE_COMPLETIONS = {
const GetTinyImageSchema = z.object({});
const AnnotatedMessageSchema = z.object({
- messageType: z.enum(["error", "success", "debug"])
+ messageType: z
+ .enum(["error", "success", "debug"])
.describe("Type of message to demonstrate different annotation patterns"),
- includeImage: z.boolean().default(false)
- .describe("Whether to include an example image")
+ includeImage: z
+ .boolean()
+ .default(false)
+ .describe("Whether to include an example image"),
+});
+
+const GetResourceReferenceSchema = z.object({
+ resourceId: z
+ .number()
+ .min(1)
+ .max(100)
+ .describe("ID of the resource to reference (1-100)"),
});
enum ToolName {
@@ -76,11 +87,13 @@ enum ToolName {
SAMPLE_LLM = "sampleLLM",
GET_TINY_IMAGE = "getTinyImage",
ANNOTATED_MESSAGE = "annotatedMessage",
+ GET_RESOURCE_REFERENCE = "getResourceReference",
}
enum PromptName {
SIMPLE = "simple_prompt",
COMPLEX = "complex_prompt",
+ RESOURCE = "resource_prompt",
}
export const createServer = () => {
@@ -96,7 +109,7 @@ export const createServer = () => {
tools: {},
logging: {},
},
- },
+ }
);
let subscriptions: Set = new Set();
@@ -115,36 +128,37 @@ export const createServer = () => {
let logLevel: LoggingLevel = "debug";
let logsUpdateInterval: NodeJS.Timeout | undefined;
const messages = [
- {level: "debug", data: "Debug-level message"},
- {level: "info", data: "Info-level message"},
- {level: "notice", data: "Notice-level message"},
- {level: "warning", data: "Warning-level message"},
- {level: "error", data: "Error-level message"},
- {level: "critical", data: "Critical-level message"},
- {level: "alert", data: "Alert level-message"},
- {level: "emergency", data: "Emergency-level message"}
- ]
+ { level: "debug", data: "Debug-level message" },
+ { level: "info", data: "Info-level message" },
+ { level: "notice", data: "Notice-level message" },
+ { level: "warning", data: "Warning-level message" },
+ { level: "error", data: "Error-level message" },
+ { level: "critical", data: "Critical-level message" },
+ { level: "alert", data: "Alert level-message" },
+ { level: "emergency", data: "Emergency-level message" },
+ ];
- const isMessageIgnored = (level:LoggingLevel):boolean => {
+ const isMessageIgnored = (level: LoggingLevel): boolean => {
const currentLevel = messages.findIndex((msg) => logLevel === msg.level);
- const messageLevel = messages.findIndex((msg) => level === msg.level);
+ const messageLevel = messages.findIndex((msg) => level === msg.level);
return messageLevel < currentLevel;
- }
+ };
// Set up update interval for random log messages
logsUpdateInterval = setInterval(() => {
let message = {
method: "notifications/message",
params: messages[Math.floor(Math.random() * messages.length)],
- }
- if (!isMessageIgnored(message.params.level as LoggingLevel)) server.notification(message);
+ };
+ if (!isMessageIgnored(message.params.level as LoggingLevel))
+ server.notification(message);
}, 15000);
// Helper method to request sampling from client
const requestSampling = async (
context: string,
uri: string,
- maxTokens: number = 100,
+ maxTokens: number = 100
) => {
const request: CreateMessageRequest = {
method: "sampling/createMessage",
@@ -280,6 +294,17 @@ export const createServer = () => {
},
],
},
+ {
+ name: PromptName.RESOURCE,
+ description: "A prompt that includes an embedded resource reference",
+ arguments: [
+ {
+ name: "resourceId",
+ description: "Resource ID to include (1-100)",
+ required: true,
+ },
+ ],
+ },
],
};
});
@@ -330,6 +355,37 @@ export const createServer = () => {
};
}
+ if (name === PromptName.RESOURCE) {
+ const resourceId = parseInt(args?.resourceId as string, 10);
+ if (isNaN(resourceId) || resourceId < 1 || resourceId > 100) {
+ throw new Error(
+ `Invalid resourceId: ${args?.resourceId}. Must be a number between 1 and 100.`
+ );
+ }
+
+ const resourceIndex = resourceId - 1;
+ const resource = ALL_RESOURCES[resourceIndex];
+
+ return {
+ messages: [
+ {
+ role: "user",
+ content: {
+ type: "text",
+ text: `This prompt includes Resource ${resourceId}. Please analyze the following resource:`,
+ },
+ },
+ {
+ role: "user",
+ content: {
+ type: "resource",
+ resource: resource,
+ },
+ },
+ ],
+ };
+ }
+
throw new Error(`Unknown prompt: ${name}`);
});
@@ -347,7 +403,8 @@ export const createServer = () => {
},
{
name: ToolName.PRINT_ENV,
- description: "Prints all environment variables, helpful for debugging MCP server configuration",
+ description:
+ "Prints all environment variables, helpful for debugging MCP server configuration",
inputSchema: zodToJsonSchema(PrintEnvSchema) as ToolInput,
},
{
@@ -368,9 +425,16 @@ export const createServer = () => {
},
{
name: ToolName.ANNOTATED_MESSAGE,
- description: "Demonstrates how annotations can be used to provide metadata about content",
+ description:
+ "Demonstrates how annotations can be used to provide metadata about content",
inputSchema: zodToJsonSchema(AnnotatedMessageSchema) as ToolInput,
},
+ {
+ name: ToolName.GET_RESOURCE_REFERENCE,
+ description:
+ "Returns a resource reference that can be used by MCP clients",
+ inputSchema: zodToJsonSchema(GetResourceReferenceSchema) as ToolInput,
+ },
];
return { tools };
@@ -407,7 +471,7 @@ export const createServer = () => {
for (let i = 1; i < steps + 1; i++) {
await new Promise((resolve) =>
- setTimeout(resolve, stepDuration * 1000),
+ setTimeout(resolve, stepDuration * 1000)
);
if (progressToken !== undefined) {
@@ -450,10 +514,12 @@ export const createServer = () => {
const result = await requestSampling(
prompt,
ToolName.SAMPLE_LLM,
- maxTokens,
+ maxTokens
);
return {
- content: [{ type: "text", text: `LLM sampling result: ${result.content.text}` }],
+ content: [
+ { type: "text", text: `LLM sampling result: ${result.content.text}` },
+ ],
};
}
@@ -478,6 +544,35 @@ export const createServer = () => {
};
}
+ if (name === ToolName.GET_RESOURCE_REFERENCE) {
+ const validatedArgs = GetResourceReferenceSchema.parse(args);
+ const resourceId = validatedArgs.resourceId;
+
+ const resourceIndex = resourceId - 1;
+ if (resourceIndex < 0 || resourceIndex >= ALL_RESOURCES.length) {
+ throw new Error(`Resource with ID ${resourceId} does not exist`);
+ }
+
+ const resource = ALL_RESOURCES[resourceIndex];
+
+ return {
+ content: [
+ {
+ type: "text",
+ text: `Returning resource reference for Resource ${resourceId}:`,
+ },
+ {
+ type: "resource",
+ resource: resource,
+ },
+ {
+ type: "text",
+ text: `You can access this resource using the URI: ${resource.uri}`,
+ },
+ ],
+ };
+ }
+
if (name === ToolName.ANNOTATED_MESSAGE) {
const { messageType, includeImage } = AnnotatedMessageSchema.parse(args);
@@ -490,8 +585,8 @@ export const createServer = () => {
text: "Error: Operation failed",
annotations: {
priority: 1.0, // Errors are highest priority
- audience: ["user", "assistant"] // Both need to know about errors
- }
+ audience: ["user", "assistant"], // Both need to know about errors
+ },
});
} else if (messageType === "success") {
content.push({
@@ -499,8 +594,8 @@ export const createServer = () => {
text: "Operation completed successfully",
annotations: {
priority: 0.7, // Success messages are important but not critical
- audience: ["user"] // Success mainly for user consumption
- }
+ audience: ["user"], // Success mainly for user consumption
+ },
});
} else if (messageType === "debug") {
content.push({
@@ -508,8 +603,8 @@ export const createServer = () => {
text: "Debug: Cache hit ratio 0.95, latency 150ms",
annotations: {
priority: 0.3, // Debug info is low priority
- audience: ["assistant"] // Technical details for assistant
- }
+ audience: ["assistant"], // Technical details for assistant
+ },
});
}
@@ -521,8 +616,8 @@ export const createServer = () => {
mimeType: "image/png",
annotations: {
priority: 0.5,
- audience: ["user"] // Images primarily for user visualization
- }
+ audience: ["user"], // Images primarily for user visualization
+ },
});
}
@@ -540,7 +635,7 @@ export const createServer = () => {
if (!resourceId) return { completion: { values: [] } };
// Filter resource IDs that start with the input value
- const values = EXAMPLE_COMPLETIONS.resourceId.filter(id =>
+ const values = EXAMPLE_COMPLETIONS.resourceId.filter((id) =>
id.startsWith(argument.value)
);
return { completion: { values, hasMore: false, total: values.length } };
@@ -548,10 +643,11 @@ export const createServer = () => {
if (ref.type === "ref/prompt") {
// Handle completion for prompt arguments
- const completions = EXAMPLE_COMPLETIONS[argument.name as keyof typeof EXAMPLE_COMPLETIONS];
+ const completions =
+ EXAMPLE_COMPLETIONS[argument.name as keyof typeof EXAMPLE_COMPLETIONS];
if (!completions) return { completion: { values: [] } };
- const values = completions.filter(value =>
+ const values = completions.filter((value) =>
value.startsWith(argument.value)
);
return { completion: { values, hasMore: false, total: values.length } };
diff --git a/src/github/operations/pulls.ts b/src/github/operations/pulls.ts
index 9b1a5bd7..3628e707 100644
--- a/src/github/operations/pulls.ts
+++ b/src/github/operations/pulls.ts
@@ -112,11 +112,20 @@ export const CreatePullRequestReviewSchema = z.object({
commit_id: z.string().optional().describe("The SHA of the commit that needs a review"),
body: z.string().describe("The body text of the review"),
event: z.enum(['APPROVE', 'REQUEST_CHANGES', 'COMMENT']).describe("The review action to perform"),
- comments: z.array(z.object({
- path: z.string().describe("The relative path to the file being commented on"),
- position: z.number().describe("The position in the diff where you want to add a review comment"),
- body: z.string().describe("Text of the review comment")
- })).optional().describe("Comments to post as part of the review")
+ comments: z.array(
+ z.union([
+ z.object({
+ path: z.string().describe("The relative path to the file being commented on"),
+ position: z.number().describe("The position in the diff where you want to add a review comment"),
+ body: z.string().describe("Text of the review comment")
+ }),
+ z.object({
+ path: z.string().describe("The relative path to the file being commented on"),
+ line: z.number().describe("The line number in the file where you want to add a review comment"),
+ body: z.string().describe("Text of the review comment")
+ })
+ ])
+ ).optional().describe("Comments to post as part of the review (specify either position or line, not both)")
});
export const MergePullRequestSchema = z.object({