Skip to main content
Glama
shricodev

updated mcp spec tut

by shricodev

updated mcp spec tut

node typescript cloudflare workers

Small MCP server that plays with the newer bits of the spec: elicitation (interactive confirm dialogs), signed request state, and cache hints on tools/list. Ships as a plain Node server and as a Cloudflare Worker, same handler underneath.

What it does

The deploy tool needs confirmation before it does anything. If the connecting client supports elicitation, the server pops a real confirm dialog and mints a signed, short lived state token to track that flow. If the client doesn't support elicitation, it falls back to a confirm: true argument instead. legacy-client-test.ts exercises that fallback path directly.

Every request builds a fresh McpServer instance, so server_stats shows you the process is stateless per request while list_deployments proves you can still keep real state around (in memory here, for the demo).

Related MCP server: MCP Gateway Demo

Run it

npm install
npm run server   # starts on http://127.0.0.1:3000/mcp
npm run client   # connects, deploys, reads it back

Cloudflare Worker

Same MCP handler, just wired through worker.ts and wrangler.jsonc.

npx wrangler dev
npx wrangler deploy

Set STATE_KEY in production so every instance verifies request state with the same secret.

Files

  • bot.ts: the actual MCP server and tools

  • server.ts: Node entrypoint (Hono + @hono/node-server)

  • worker.ts: Cloudflare Worker entrypoint

  • client.ts: demo client with elicitation support

  • legacy-client-test.ts: demo client without it, uses the fallback

enjoy!! :)

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A reference implementation of an MCP server built with Express that integrates full OAuth 2.1 authorization and RFC9728 protected resource metadata. It enables secure, authenticated communication between MCP clients and servers using streamable HTTP transport and built-in authorization flows.
    Last updated
  • A
    license
    -
    quality
    C
    maintenance
    Provides a sovereign, MIT-licensed MCP server for professional-service workflows, running entirely on your infrastructure with Ed25519 cryptographic signing for every action.
    Last updated
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    A complete MCP server implementation demonstrating all protocol features (tools, resources, prompts, sampling, and elicitation) with OAuth authentication, serving as a learning resource and starting template for building MCP servers.
    Last updated
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.

  • MCP server for verifying EUDI/Talao wallet data via OIDC4VP (pull) for AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shricodev/updated-2026-july-mcp-spec-tut'

If you have feedback or need assistance with the MCP directory API, please join our Discord server