inflearn logo

Building an MCP Server with TypeScript

Just because my function appears in the AI app’s tool list, does that mean it really ran? I’ll build a small issue-query server with the official TypeScript SDK and verify each step through actual execution logs—from input and result contracts to HTTP connectivity, OAuth permission checks, reducing dangerous inputs, testing, and restarting.

1 learners are taking this course

Level Basic

Course period Unlimited

Node.js
Node.js
TypeScript
TypeScript
OAuth
OAuth
Model Context Protocol
Model Context Protocol
Node.js
Node.js
TypeScript
TypeScript
OAuth
OAuth
Model Context Protocol
Model Context Protocol

What you will gain after the course

  • By correlating the request’s method and ID with the server function’s entry logs and stored values, you can distinguish between the “tools shown in the list” and the “calls that were actually executed.”

  • With the official TypeScript SDK, you can register tools, resources, and prompts, and define the input schema, the result fields the app will read, and the layer for containing errors.

  • You can trace the flow from a 401 response to finding the authorization server and obtaining a token, and the server can verify the token’s audience and expiration, as well as permissions by operation and project.

  • We can reproduce and narrow down risks hidden within allowed calls, such as instructions in wikis, symbolic links, URL redirects, and secrets mixed into logs.

  • You can verify through testing that a comment is left only once even after repeated requests and restarts, and that rejected calls truly did not save anything.

Recommended for
these people

Who is this course right for?

  • A developer who has built HTTP APIs and async functions but is new to MCP servers, which connect tools to AI apps

  • For those who found it daunting to know where to start looking on the server side when a tool appeared in the tool list but the call failed

  • Those who want to check directly on the server whether write access was not opened even though only viewing was allowed.

  • Those who want to make an informed decision about whether to use the server they built only on their own computer or expose it to their team over HTTP

Need to know before starting?

  • You only need to be able to read JavaScript functions, objects, modules, async/await, JSON, HTTP requests and responses, and basic terminal usage. I’ll explain the TypeScript type annotations that appear on screen as they come up.

  • It’s okay if you don’t have experience developing with MCP, OAuth, or AI agents. Starting in Lesson 1, we’ll learn together how to match requests with responses.

Hello
This is haeyeomiso

Career Verified

567

Learners

23

Reviews

40

Answers

4.7

Rating

15

Courses

Nice to meet you!

I am Haeyeo, someone who explores the infinite possibilities of AI and computer science and wishes to share that journey with all of you.

During my undergraduate years, my passion for my major was so intense that I was nicknamed a 'Computer Science Addict.' I graduated at the top of my class with a major GPA of over 4.4. I then earned my Master's degree in AI from Seoul National University and further deepened my expertise through a doctoral program.

However, as I felt as much of a fascination for solving real-world problems with AI as I did for theoretical exploration, I took a break from my doctoral studies to gain valuable hands-on experience by working on AI-based LLM and video analysis projects at a startup.

Currently, I am working as an LLM project developer and PM at one of the top three conglomerates in Korea, contributing to creating positive changes that AI technology will bring to our lives. I will generously share with you the challenges I faced, the problem-solving processes I went through, and the vivid know-how I gained in the field. I will be your reliable guide on this journey into the exciting world of AI.

Inquiries and Proposals: haeyeo.open@gmail.com

More

Curriculum

All

42 lectures ∙ (6hr 36min)

Published: 
Last updated: 

Reviews

Not enough reviews.
Please write a valuable review that helps everyone!

haeyeomiso's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

Limited time deal

$39,600.00

40%

$51.70